diff --git a/mrp_flattened_bom_xlsx_labour_cost/__manifest__.py b/mrp_flattened_bom_xlsx_labour_cost/__manifest__.py index 4c770cda..e00f3bbe 100644 --- a/mrp_flattened_bom_xlsx_labour_cost/__manifest__.py +++ b/mrp_flattened_bom_xlsx_labour_cost/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Export Flattened BOM to Excel with labour cost", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "category": "Manufacturing", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/manufacture-reporting", diff --git a/mrp_flattened_bom_xlsx_labour_cost/models/mrp_bom.py b/mrp_flattened_bom_xlsx_labour_cost/models/mrp_bom.py index b09f1ffd..882682c9 100644 --- a/mrp_flattened_bom_xlsx_labour_cost/models/mrp_bom.py +++ b/mrp_flattened_bom_xlsx_labour_cost/models/mrp_bom.py @@ -3,17 +3,11 @@ from odoo import fields, models -from odoo.addons import decimal_precision as dp - -UNIT = dp.get_precision("Product Price") - class MrpBom(models.Model): _inherit = "mrp.bom" - labour_cost = fields.Float( - string="Labour Cost", compute="_compute_labour_cost", digits=UNIT - ) + labour_cost = fields.Float(compute="_compute_labour_cost", digits="Product Price") def _compute_labour_cost(self): for bom in self: diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..d19a322a --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +odoo-addon-mrp_flattened_bom_xlsx_direct_materials_cost@git+https://github.com/OCA/manufacture-reporting.git@refs/pull/116/head#subdirectory=setup/mrp_flattened_bom_xlsx_direct_materials_cost +odoo-addon-mrp_flattened_bom_xlsx@git+https://github.com/OCA/manufacture-reporting.git@refs/pull/112/head#subdirectory=setup/mrp_flattened_bom_xlsx +odoo-addon-report_xlsx@git+https://github.com/OCA/reporting-engine.git@16.0#subdirectory=setup/report_xlsx