Skip to content

Commit

Permalink
[MIG] mrp_lot_number_propagation: Backport from 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Nov 7, 2024
1 parent afef4f3 commit 22fcef6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 536 deletions.
90 changes: 0 additions & 90 deletions mrp_lot_number_propagation/README.rst

This file was deleted.

2 changes: 1 addition & 1 deletion mrp_lot_number_propagation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "MRP Serial Number Propagation",
"version": "15.0.0.3.0",
"version": "14.0.1.0.0",
"development_status": "Beta",
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
Expand Down
7 changes: 7 additions & 0 deletions mrp_lot_number_propagation/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ def write(self, vals):
)
return super().write(vals)

def action_generate_serial(self):
if self.is_lot_number_propagated:
if self.product_id.tracking == "serial":
self._set_qty_producing()
return

Check warning on line 159 in mrp_lot_number_propagation/models/mrp_production.py

View check run for this annotation

Codecov / codecov/patch

mrp_lot_number_propagation/models/mrp_production.py#L158-L159

Added lines #L158 - L159 were not covered by tests
return super().action_generate_serial()

def fields_view_get(
self, view_id=None, view_type="form", toolbar=False, submenu=False
):
Expand Down
Binary file not shown.
Loading

0 comments on commit 22fcef6

Please sign in to comment.