diff options
| author | oco-odoo <oco@odoo.com> | 2019-09-30 09:21:36 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2019-09-30 09:21:36 +0000 |
| commit | fdc3555c8d3967f03fa600134d5c84932cea82ef (patch) | |
| tree | d6ac642300aee2f4e0fb8b1b2ebf69649c8ae369 | |
| parent | 2727b383b955e856481468c392db24b796530fee (diff) | |
[IMP] account: filter receivable and payable accounts so that they are not selectable as tax accounts on repartition lines
closes odoo/odoo#37572
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
| -rw-r--r-- | addons/account/views/account_view.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 3abbb121871..b9357a5aab9 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1140,7 +1140,7 @@ action = model.setting_init_bank_account_action() <field name="sequence" widget="handle"/> <field name="factor_percent" attrs="{'invisible': [('repartition_type', '=', 'base')]}"/> <field name="repartition_type"/> - <field name="account_id" attrs="{'invisible': [('repartition_type', '=', 'base')]}" options="{'no_create': True}"/> + <field name="account_id" attrs="{'invisible': [('repartition_type', '=', 'base')]}" options="{'no_create': True}" domain="[('internal_type', 'not in', ('receivable', 'payable'))]"/> <field name="tag_ids" widget="many2many_tags" options="{'no_create': True}" domain="[('applicability', '=', 'taxes'), ('country_id', '=', country_id)]"/> <field name="country_id" invisible="1"/> <field name="company_id" invisible="1"/> |
