[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>
This commit is contained in:
oco-odoo
2019-09-30 09:21:36 +00:00
parent 2727b383b9
commit fdc3555c8d
+1 -1
View File
@@ -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"/>