semillero-154 Tipo de regla de distribución de costes para partidas en invernaderos
This commit is contained in:
parent
eba6d5086e
commit
59794f0398
|
@ -9,7 +9,7 @@ __all__ = ['Production']
|
|||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
class Production(ComposeCostSource, CostCenter):
|
||||
class Production(ComposeCostSource):
|
||||
|
||||
__name__ = 'production'
|
||||
|
||||
|
|
|
@ -6,28 +6,5 @@
|
|||
<field name="model">production,-1</field>
|
||||
<field name="action" ref="cost_manage.wizard_distribute"/>
|
||||
</record>
|
||||
|
||||
<!--record model="ir.ui.view" id="timesheet_team_timesheet_view_form">
|
||||
<field name="model">timesheet.team.timesheet</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit" ref="team_timesheet.timesheet_team_timesheet_view_form"/>
|
||||
<field name="name">timesheet_team_timesheet_form</field>
|
||||
</record-->
|
||||
|
||||
|
||||
<!-- Rule Types -->
|
||||
<record model="cost.manage.distribution.rule.type" id="distribution_rule_type_production_inputs">
|
||||
<field name="code">production_inputs</field>
|
||||
<field name="name">production_inputs</field>
|
||||
<field name="cost_center_model" search="[('model', '=', 'production')]"/>
|
||||
<field name="domain">[('inputs', '=', %(cost_source)s)]</field>
|
||||
<field name="parameter_aliases"></field>
|
||||
<field name="is_automatic">True</field>
|
||||
<field name="active">True</field>
|
||||
</record>
|
||||
<record model="cost.manage.distribution.rule.type-ir.model" id="rule_type-ir_model_production_inputs-production">
|
||||
<field name="rule_type" ref="distribution_rule_type_production_inputs"/>
|
||||
<field name="cost_source_model" search="[('model', '=', 'stock.move')]"/>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
Loading…
Reference in New Issue