diff options
| author | Wolfgang Taferner <wtaferner@users.noreply.github.com> | 2020-02-07 20:00:58 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-02-11 11:39:58 +0000 |
| commit | 8496ffbc03cbb45ca8a676b8f563f8f1b79f9980 (patch) | |
| tree | 1a422067fd4abb99fe50b31e98cd5f8aace4b695 /addons/mass_mailing/data | |
| parent | d8dc4cbafca6268155bb5a0d4d9fd55d2a0d3cec (diff) | |
[FIX] stock: filtered related product_id field will overwrite on create
Assume a situation where you trigger a method which is going to create a
nested picking with move_lines included and having a filter set which
means that your context includes {'default_product_id': 20}
{
'location_dest_id': 9,
'location_id': 19,
'move_lines': [(0,
0,
{'location_dest_id': 1,
'location_id': 2,
'name': u'name',
'partner_id': 1,
'product_id': 10,
'product_uom': 1,
'product_uom_qty': 1.0})],
'origin': u'Origin',
'partner_id': 1,
'picking_type_id': 59
}
Before the creation of the objects it will inject the default product in
the top level of the dict which should create a picking with one or more
move_lines.
Based on this this injection will overwrite all product_id values of the
created move lines as the picking is created last and the default value
will write ALL move lines with this specific product from the context.
closes odoo/odoo#45076
X-original-commit: 1da687b644e581081ce21687c5eb32285c872a2a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mass_mailing/data')
0 files changed, 0 insertions, 0 deletions
