[IMP] web_widget_one2many_product_picker: Force save product

pull/1858/head
Alexandre D. Díaz 2021-06-07 12:37:25 +02:00
parent fdbd96f0d7
commit 9ab2ec31b3
1 changed files with 5 additions and 1 deletions

View File

@ -139,7 +139,11 @@ odoo.define(
"readonly",
wanted_field_states[field_name] ? "1" : "0"
);
if (field_name === this.fieldMap.price_unit) {
if (
[this.fieldMap.price_unit, this.fieldMap.product].indexOf(
field_name
) !== -1
) {
$field.attr("force_save", "1");
}
gen_arch += $field[0].outerHTML;