summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2019-09-17 09:55:32 +0000
committerLucas Perais (lpe) <lpe@odoo.com>2019-09-19 07:19:21 +0000
commitd786d7d250b9fb6dc46f8d4f790fb5975910f330 (patch)
treea9e25452a38c4aa34c6eb22669ed6ef06832003c
parent0a76e75b96d7247662c7a71ff212fb69040608b3 (diff)
[FIX] account: cash basis base account not required
Before this commit, the field cash_basis_base_account_id, used to keep track of the base on which a tax a computed for cash basis entries was required in the tax form view Since this account can be absent, and will be most of the time, and that an account is retrieved anyway in the move creation process it is safe to remove the required attribute in the view After this commit, the field is not required in view anymore OPW 2072750 closes odoo/odoo#37060 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
-rw-r--r--addons/account/views/account_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml
index b6380bd5e5c..9a99b583d3a 100644
--- a/addons/account/views/account_view.xml
+++ b/addons/account/views/account_view.xml
@@ -1131,7 +1131,7 @@ action = model.setting_init_bank_account_action()
<field name="include_base_amount" attrs="{'invisible':[('amount_type','=', 'group')]}" />
<field name="hide_tax_exigibility" invisible="1"/>
<field name="tax_exigibility" widget="radio" attrs="{'invisible':['|', ('amount_type','=', 'group'), ('hide_tax_exigibility', '=', False)]}" groups="account.group_account_user"/>
- <field name="cash_basis_base_account_id" options="{'no_create': True}" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}" groups="account.group_account_user"/>
+ <field name="cash_basis_base_account_id" options="{'no_create': True}" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')]}" groups="account.group_account_user"/>
<field name="cash_basis_transition_account_id" options="{'no_create': True}" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}" groups="account.group_account_user"/>
</group>
</group>