trytond-production_cost_manage/cost_manage.py

20 lines
565 B
Python

#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
__all__ = ['CostDistribution']
__metaclass__ = PoolMeta
class CostDistribution:
__name__ = 'cost.manage.cost.distribution'
@classmethod
def _get_cost_center(cls):
"""Return list of Model names for Cost source Reference"""
cost_centers = super(CostDistribution, cls)._get_cost_center()
cost_centers.append('production')
return cost_centers