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 30, 2023
1 parent c09ac09 commit 30672b9
Show file tree
Hide file tree
Showing 2 changed files with 2 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

0 comments on commit 30672b9

Please sign in to comment.