mirror of
https://gitlab.com/datalifeit/trytond-production_cost_manage
synced 2023-12-14 05:22:55 +01:00
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:
commit
364377862d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/.idea
|
||||
*.pyc
|
11
__init__.py
Normal file
11
__init__.py
Normal 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
20
cost_manage.py
Normal 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
5
tryton.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
[tryton]
|
||||
version=3.2.1
|
||||
depends:
|
||||
cost_manage
|
||||
production
|
Loading…
Reference in a new issue