changeset 56f57d41846b in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=56f57d41846b
description:
Prevent assign unknown attributes on Model
by adding __slots__ on proteus classes.
issue6573
review254081002
diffstat:
tests/scenario_stock_shipment_internal.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r ab65dc403e76 -r 56f57d41846b tests/scenario_stock_shipment_internal.rst
--- a/tests/scenario_stock_shipment_internal.rst Sat Sep 07 23:13:33
2019 +0200
+++ b/tests/scenario_stock_shipment_internal.rst Sat Sep 07 23:38:20
2019 +0200
@@ -103,7 +103,7 @@
>>> move = StockMove()
>>> move = lost_found_shipment.moves.new()
>>> move.product = product
- >>> move.oum = unit
+ >>> move.uom = unit
>>> move.quantity = 2
>>> move.from_location = lost_found_loc
>>> move.to_location = internal_loc
@@ -136,8 +136,8 @@
>>> set_user(1)
>>> LeadTime = Model.get('stock.location.lead_time')
>>> lead_time = LeadTime()
- >>> lead_time.from_warehouse = storage_loc.warehouse
- >>> lead_time.to_warehouse = storage_loc.warehouse
+ >>> lead_time.warehouse_from = internal_loc.warehouse
+ >>> lead_time.warehouse_to = storage_loc.warehouse
>>> lead_time.lead_time = datetime.timedelta(1)
>>> lead_time.save()