changeset 4cf2a4bb926e in modules/stock_location_move:default
details: 
https://hg.tryton.org/modules/stock_location_move?cmd=changeset;node=4cf2a4bb926e
description:
        Prevent assign unknown attributes on Model

        by adding __slots__ on proteus classes.

        issue6573
        review254081002
diffstat:

 tests/scenario_stock_location_move.rst |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r c502e3292fd7 -r 4cf2a4bb926e tests/scenario_stock_location_move.rst
--- a/tests/scenario_stock_location_move.rst    Fri Aug 09 16:40:20 2019 +0200
+++ b/tests/scenario_stock_location_move.rst    Sat Sep 07 23:38:20 2019 +0200
@@ -99,8 +99,8 @@
 
     >>> 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 = storage_loc.warehouse
+    >>> lead_time.warehouse_to = storage_loc.warehouse
     >>> lead_time.lead_time = datetime.timedelta(1)
     >>> lead_time.save()
 

Reply via email to