mirror of
https://gitlab.com/datalifeit/trytond-stock_shipment_in_edi
synced 2023-12-14 06:42:59 +01:00
Fix bug on list call
This commit is contained in:
parent
820c1bbc3c
commit
0cf34802b7
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ class ShipmentIn(EdifactMixin, metaclass=PoolMeta):
|
|||
('state', 'in', ('processing', 'done'))
|
||||
])
|
||||
if len(purchases) == 1:
|
||||
purchase = purchase[0]
|
||||
purchase = purchases[0]
|
||||
if not purchase:
|
||||
error_msg = 'Purchase number {} not found'.format(purchase_num)
|
||||
serialized_segment = Serializer(control_chars).serialize([segment])
|
||||
|
|
Loading…
Reference in a new issue