[FIX] hr_expense: allow saving expense with UOM readonly
Steps to repoduce: - go to expense - select Mileage [MIL] - Save Issue: Canno save, different UOM opw-3001568 closes odoo/odoo#102280 X-original-commit: 4621d776f0108fa0226cfac56b0f376a5f2a0b2d Signed-off-by: Kevin Baptiste <kba@odoo.com> Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
<label for="quantity" attrs="{'invisible': [('product_has_cost', '=', False)]}"/>
|
||||
<div class="o_row" attrs="{'invisible': [('product_has_cost', '=', False)]}">
|
||||
<field name="quantity" class="oe_inline" attrs="{'readonly': [('sheet_is_editable', '=', False)]}" style="width: auto !important;"/>
|
||||
<field name="product_uom_id" required="1" options="{'no_open': True, 'no_create': True}" class="oe_inline" groups="uom.group_uom"/>
|
||||
<field name="product_uom_id" required="1" force_save="1" options="{'no_open': True, 'no_create': True}" class="oe_inline" groups="uom.group_uom"/>
|
||||
</div>
|
||||
|
||||
<label for="total_amount" string="Total" attrs="{'invisible': [('product_has_cost', '=', True)]}"/>
|
||||
|
||||
Reference in New Issue
Block a user