[IMP] hr_expense: edit account on expense sheet

Before this commit, the field account was readonly on the expense sheet and
the accountants have to go thourgh each expenses to change the account.

After, we allow changing the account on the expense sheet directly.

closes odoo/odoo#116439

Task-id: 3244925
X-original-commit: 3102ec4c3b108be18ccc6856c1c235b0b37d1e00
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Detry Thomas (det) <det@odoo.com>
This commit is contained in:
det
2023-03-24 11:08:38 +01:00
parent 477e4af96d
commit 2bda33784d
+1 -1
View File
@@ -791,7 +791,7 @@
groups="analytic.group_analytic_accounting"
optional="show"
options="{'product_field': 'product_id', 'account_field': 'account_id', 'business_domain': 'expense'}"/>
<field name="account_id" optional="hide" readonly="True"/>
<field name="account_id" optional="hide" groups="account.group_account_readonly"/>
<field name="product_has_cost" invisible="True"/>
<field name="unit_amount" optional="hide" widget="monetary" attrs="{'readonly': [('product_has_cost', '=', False)]}" options="{'currency_field': 'currency_id'}"/>
<field name="currency_id" optional="hide" readonly="True"/>