trytond-production_cost_manage/production_cost_manage.xml

33 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<tryton>
<data>
<record model="ir.action.keyword" id="distribute_keyword">
<field name="keyword">form_action</field>
<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>