[FIX] mrp_average_cost: fix bad dependency

This commit is contained in:
Alexis de Lattre
2024-06-24 18:31:35 +02:00
parent 29b8ebb779
commit 9367f7006e
2 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
""",
'author': 'Akretion',
'website': 'https://github.com/akretion/odoo-usability',
'depends': ['mrp'],
'depends': ['mrp_account'],
'data': [
'security/mrp_average_cost_security.xml',
'security/ir.model.access.csv',

View File

@@ -165,7 +165,9 @@ class MrpProduction(models.Model):
company_currency_id = fields.Many2one(
related='company_id.currency_id', string='Company Currency')
# extra_cost is per unit in the UoM of the mrp.production (product_uom_id)
# extra_cost is a native field of mrp_account
# we convert it to a computed field
# extra_cost is per unit in the UoM of mrp.production (product_uom_id)
extra_cost = fields.Float(
compute='_compute_extra_cost', store=True, readonly=False,
help="For a regular production order, it takes into account the labor cost "