From b40433169cc16ed26d0e4fe3a9893c237a35e9e8 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 10 Feb 2026 23:30:27 +0700 Subject: [PATCH] fix lot_producing_id change to lot_producing_ids[:1] --- __manifest__.py | 2 +- models/mrp_production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__manifest__.py b/__manifest__.py index ee1f013..f747bb3 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Citizen ZPL Printer', - 'version': '18.0.1.0.0', + 'version': '19.0.1.0.0', 'category': 'Inventory/Hardware', 'summary': 'Print ZPL labels directly to Citizen Printer via Network', 'description': """ diff --git a/models/mrp_production.py b/models/mrp_production.py index 49d2156..1c7b679 100644 --- a/models/mrp_production.py +++ b/models/mrp_production.py @@ -11,7 +11,7 @@ class MrpProduction(models.Model): raise UserError(_("You can only print labels for done manufacturing orders.")) # For MRP, we usually have lot_producing_id - lots = self.lot_producing_id + lots = self.lot_producing_ids[:1] # Also check if there are other lots produced in case of multi-step or whatever (usually lot_producing_id is the main one) # If we want all produced lots (e.g. byproducts or split production?), we might look at finished_move_line_ids