mirror of
https://github.com/NaN-tic/trytond-systemlogics_modula.git
synced 2023-12-14 04:32:53 +01:00
FIX shipment ids modula + continue shipment reviews
This commit is contained in:
parent
3946127562
commit
08ec7e7082
2 changed files with 6 additions and 1 deletions
5
stock.py
5
stock.py
|
@ -24,6 +24,9 @@ class ShipmentOut:
|
|||
|
||||
systemlogics_shipments = []
|
||||
for s in shipments:
|
||||
if hasattr(s, 'review'):
|
||||
if s.review:
|
||||
continue
|
||||
systemLogics = False
|
||||
for move in s.inventory_moves:
|
||||
if move.from_location.systemlogics_modula:
|
||||
|
@ -36,7 +39,7 @@ class ShipmentOut:
|
|||
cls.write(systemlogics_shipments, {'systemlogics_modula': True})
|
||||
|
||||
# Force not get a rollback to generate XML file
|
||||
shipment_ids = [shipment.id for shipment in shipments]
|
||||
shipment_ids = [s.id for s in systemlogics_shipments]
|
||||
Transaction().cursor.commit()
|
||||
# Search shipment ID to sure not have a rollback
|
||||
shipments = cls.search([
|
||||
|
|
|
@ -6,6 +6,8 @@ depends:
|
|||
product_barcode
|
||||
stock_product_location
|
||||
stock_user
|
||||
extras_depend:
|
||||
stock_shipment_review
|
||||
xml:
|
||||
systemlogics.xml
|
||||
systemlogics_data.xml
|
||||
|
|
Loading…
Reference in a new issue