fix lot_producing_id change to lot_producing_ids[:1]

This commit is contained in:
Suherdy Yacob 2026-02-10 23:30:27 +07:00
parent bca71aff55
commit b40433169c
2 changed files with 2 additions and 2 deletions

View File

@ -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': """

View File

@ -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