Skip to content

Commit

Permalink
[MIG] mrp_flattened_bom_xlsx_labour_cost: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PauBForgeFlow committed Oct 11, 2023
1 parent c09ac09 commit 4a057a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mrp_flattened_bom_xlsx_labour_cost/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 1 addition & 7 deletions mrp_flattened_bom_xlsx_labour_cost/models/mrp_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -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/[email protected]#subdirectory=setup/report_xlsx

0 comments on commit 4a057a2

Please sign in to comment.