semillero-99 Costes base básico, creación del moódulo framework de costes, creación de módulo de relación entre el cost source timesheet y el módulo de costes, creación de módulos relación entre el cost center producción / nursery batch y el framework de costes.

This commit is contained in:
Nicolás López 2014-10-14 12:20:29 +02:00
commit 364377862d
4 changed files with 38 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/.idea
*.pyc

11
__init__.py Normal file
View file

@ -0,0 +1,11 @@
#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 Pool
from .cost_manage import CostDistribution
def register():
Pool.register(
CostDistribution,
module='production_cost_manage', type_='model')

20
cost_manage.py Normal file
View file

@ -0,0 +1,20 @@
#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"""
sources = super(CostDistribution, cls)._get_cost_center()
sources.append('production')
return sources

5
tryton.cfg Normal file
View file

@ -0,0 +1,5 @@
[tryton]
version=3.2.1
depends:
cost_manage
production