openobject-italia-core-devs team mailing list archive
-
openobject-italia-core-devs team
-
Mailing list archive
-
Message #01933
[Bug 1271907] Re: Impossibile duplicare stock.picking
Except very special cases, it's better to avoid all mutable default
values. In our base, both context and default. See for example:
http://bazaar.launchpad.net/~openerp/openobject-
addons/7.0/view/head:/mrp/product.py#L31
and
http://bazaar.launchpad.net/~openerp/openobject-
server/7.0/view/head:/openerp/osv/orm.py#L5051
--
You received this bug notification because you are a member of OpenERP
Italia core devs, which is subscribed to OpenERP Italia.
https://bugs.launchpad.net/bugs/1271907
Title:
Impossibile duplicare stock.picking
Status in OpenERP Italia:
New
Bug description:
Provando a duplicare un DDT (stock.picking) dopo aver installato
l10n_it_sale, si ottiene questo errore:
File "/Users/enlightx/Development/OpenERP/7.0/dev/parts/openobject-italia/l10n_it_sale/stock/picking.py", line 89, in copy
default.update({'ddt_number': ''})
TypeError: super(type, obj): obj must be an instance or subtype of type
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-italia/+bug/1271907/+subscriptions
References