Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
4beb4402 by Cédric Krier at 2023-01-27T12:18:14+01:00
Fill warehouse locations in stock_shipment_measurements tests

Since 6efb7bc9d60f the warehouse locations are required but they are not
filled in unit test because on_change's are not called.

Closes #12045
- - - - -


1 changed file:

- modules/stock_shipment_measurements/tests/test_module.py


Changes:

=====================================
modules/stock_shipment_measurements/tests/test_module.py
=====================================
@@ -154,6 +154,8 @@
             shipment = Shipment()
             shipment.customer = party
             shipment.delivery_address, = party.addresses
+            shipment.warehouse = Shipment.default_warehouse()
+            shipment.on_change_warehouse()
             shipment.save()
 
             # without moves



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/4beb4402d800075e002e168e1e6acab021ca48d7

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/4beb4402d800075e002e168e1e6acab021ca48d7
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to