mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_one2many_product_picker: Force save product
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user