Skip to content

Commit

Permalink
[IMP] mrp_stock_move_cost: pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane committed May 15, 2024
1 parent de43c02 commit cda5bbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mrp_stock_move_cost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def _post_install_put_cost_in_productions(cr, registry):
"""
This method will create a salary journal for each company and allocate it to each Belgian structure.
This method will set the production cost on already done manufacturing orders.
"""
env = api.Environment(cr, SUPERUSER_ID, {})
productions = env["mrp.production"].search([("state", "=", "done")])
Expand Down
2 changes: 1 addition & 1 deletion mrp_stock_move_cost/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MrpProduction(models.Model):
price_unit_cost = fields.Float(
string="Cost Unit Price", digits="Product Price", copy=False
)
cost = fields.Float(string="Cost", digits="Product Price", copy=False)
cost = fields.Float(digits="Product Price", copy=False)

def write(self, vals):
result = super().write(vals)
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# generated from manifests external_dependencies
PyPDF2
PyPDF2==1.26.0
PyPDF2==1.26.0 ; python_version <= '3.10'
PyPDF2==2.12.1 ; python_version > '3.10'

0 comments on commit cda5bbe

Please sign in to comment.