diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-02-04 13:49:14 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-02-06 18:37:54 +0000 |
| commit | 090748c3b1458847b867ed1b0983d1c35e26a0b2 (patch) | |
| tree | e335902e0b3b4d837e7bd7e5ebe2cdcef022b5fe /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | f61262eb08134ba5bdf9099445fe821769842bb3 (diff) | |
[FIX] purchase: specific search alter order duplication
1) Go to purchasing, and in the search area type "8888"
2) Click on the little arrow next to "Search Product for: 8888"
3) Select "[FURN_8888] Office Lamp"
4) Choose Purchase Order PO00009 which has FURN_8888 on the second line:
5) Choose Action > Duplicate
The 1st line end up with the searched product, not the original product.
This happens because the search add the context key
'default_product_id'. By chance the product.product model has a
'product_id' field which may happen to be not filled.
This cause the model api to look for a default value in the context and the
first line of the order get overridden.
Removing the specific key from the env solve the issue
opw-2188429
closes odoo/odoo#44802
X-original-commit: ed6ac9c63b4e8a5815e2f46693ababbde4a82919
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
