Use default value for anglo_saxon_quantity when duplicate

(transplanted from f88037e2180bda8379d561e54d9e3a96683bcbe7)
This commit is contained in:
Cédric Krier committed 2012-04-10 14:05:10 +02:00
1 parent 01dad010b0
commit 09ec89ea73
1 file changed
+2 -1
+2 -1
View File
@@ -85,7 +85,8 @@ class Move(ModelSQL, ModelView):
if default is None:
default = {}
default = default.copy()
default.setdefault('anglo_saxon_quantity', None)
default.setdefault('anglo_saxon_quantity',
self.default_anglo_saxon_quantity())
return super(Move, self).copy(ids, default=default)
Move()