[ADD] mrp_workorder_hr_account: analytic accounting for employee in MRP
Create analytic accounting entries for employee times logs on workorder. Compute BoM costs based on employee hourly cost and employee number required on mrp operations. closes odoo/odoo#91565 Task: 2427466 Related: odoo/enterprise#23032 Related: odoo/upgrade#3556 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -36,6 +36,7 @@ class MrpWorkcenter(models.Model):
|
||||
'Sequence', default=1, required=True,
|
||||
help="Gives the sequence order when displaying a list of work centers.")
|
||||
color = fields.Integer('Color')
|
||||
currency_id = fields.Many2one('res.currency', 'Currency', related='company_id.currency_id', readonly=True, required=True)
|
||||
costs_hour = fields.Float(string='Cost per hour', help='Hourly cost of work center.', default=0.0)
|
||||
time_start = fields.Float('Setup Time')
|
||||
time_stop = fields.Float('Cleanup Time')
|
||||
|
||||
@@ -371,7 +371,10 @@
|
||||
</div>
|
||||
</group>
|
||||
<group string="Costing Information" name="costing">
|
||||
<field name="costs_hour"/>
|
||||
<label for="costs_hour"/>
|
||||
<div id="costs_hour">
|
||||
<field name="costs_hour" class="oe_inline"/> per workcenter
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<label for="time_start"/>
|
||||
|
||||
Reference in New Issue
Block a user