Comment 5 for bug 1098557

Revision history for this message
Numérigraphe (numerigraphe) wrote : Re: Can't set a default origin for stock pickings at duplication time

Dear Amit Parik,
I hate to insist but it's not a matter of opinion. As per the ORM's API, the copy method MUST accept a dictionary of defaults values to be used instead of the current values when the record is copied.
From the doc:
"default: dictionary of field values to override in the original values of the copied record, e.g: {'field_name': overriden_value, ...}"

Now in stock.picking, several keys in default are not honored (for good reasons !) but origin is reset too and that's not necessary.
Lionel