FIX shipment ids modula + continue shipment reviews

This commit is contained in:
resteve 2015-10-14 11:39:28 +02:00
parent 3946127562
commit 08ec7e7082
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -6,6 +6,8 @@ depends:
product_barcode
stock_product_location
stock_user
extras_depend:
stock_shipment_review
xml:
systemlogics.xml
systemlogics_data.xml