fix lot_producing_id change to lot_producing_ids[:1]
This commit is contained in:
parent
bca71aff55
commit
b40433169c
@ -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': """
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user