From 8c399842c3c9322caffee5a4e07f8bfab08d830f Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 6 Nov 2008 00:20:26 +0100 Subject: [PATCH] Use a more standart way of using default on copy --- packing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packing.py b/packing.py index 3017068228..0b01f32614 100644 --- a/packing.py +++ b/packing.py @@ -237,8 +237,8 @@ class PackingIn(OSV): if default is None: default = {} default = default.copy() - default['inventory_moves']= [] - default['incoming_moves']= [] + default['inventory_moves']= False + default['incoming_moves']= False return super(PackingIn, self).copy(cursor, user, packing_id, default=default, context=context) @@ -625,8 +625,8 @@ class PackingOut(OSV): if default is None: default = {} default = default.copy() - default['inventory_moves']= [] - default['outgoing_moves']= [] + default['inventory_moves']= False + default['outgoing_moves']= False return super(PackingOut, self).copy(cursor, user, packing_id, default=default, context=context)