mirror of https://github.com/OCA/web.git
[FIX] web_widget_one2many_product_picker: Force save price unit
parent
0543c48c56
commit
fdbd96f0d7
|
@ -139,6 +139,9 @@ odoo.define(
|
|||
"readonly",
|
||||
wanted_field_states[field_name] ? "1" : "0"
|
||||
);
|
||||
if (field_name === this.fieldMap.price_unit) {
|
||||
$field.attr("force_save", "1");
|
||||
}
|
||||
gen_arch += $field[0].outerHTML;
|
||||
}
|
||||
gen_arch += "</group></form>";
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
<t t-elif="!is_virtual">
|
||||
<span
|
||||
t-att-data-field="field_map[field_uom_qty]"
|
||||
t-attf-data-esc="str({{floatFixed(field_map[field_uom_qty])}}) + ' x ' + {{field_map[field_uom]}}.data.display_name"
|
||||
t-attf-data-esc="'{{floatFixed(field_map[field_uom_qty])}}' + ' x ' + {{field_map[field_uom]}}.data.display_name"
|
||||
t-attf-class="badge {{modified && 'badge-warning' || 'badge-success'}} font-weight-bold rounded-0 mt-0 px-2 py-3 product_qty"
|
||||
/>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue