[FIX] mrp_average_cost: fix bad dependency
This commit is contained in:
@@ -22,7 +22,7 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
""",
|
""",
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
'website': 'https://github.com/akretion/odoo-usability',
|
||||||
'depends': ['mrp'],
|
'depends': ['mrp_account'],
|
||||||
'data': [
|
'data': [
|
||||||
'security/mrp_average_cost_security.xml',
|
'security/mrp_average_cost_security.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
|
|||||||
@@ -165,7 +165,9 @@ class MrpProduction(models.Model):
|
|||||||
|
|
||||||
company_currency_id = fields.Many2one(
|
company_currency_id = fields.Many2one(
|
||||||
related='company_id.currency_id', string='Company Currency')
|
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(
|
extra_cost = fields.Float(
|
||||||
compute='_compute_extra_cost', store=True, readonly=False,
|
compute='_compute_extra_cost', store=True, readonly=False,
|
||||||
help="For a regular production order, it takes into account the labor cost "
|
help="For a regular production order, it takes into account the labor cost "
|
||||||
|
|||||||
Reference in New Issue
Block a user