Skip to content

Commit 0f3b42f

Browse files
committed
[FIX] l10n_ar_tax: update tax_id domain to include parent taxes in branches
closes #1131 Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
1 parent df28893 commit 0f3b42f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

l10n_ar_tax/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020
{
2121
"name": "Automatic Argentinian Withholdings on Payments",
22-
"version": "18.0.1.11.0",
22+
"version": "18.0.1.12.0",
2323
"author": "ADHOC SA,Odoo Community Association (OCA)",
2424
"website": "www.adhoc.com.ar",
2525
"license": "AGPL-3",

l10n_ar_tax/views/account_payment_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<field name="withholding_sequence_id" column_invisible="True"/>
5050
<field name="company_id" column_invisible="True"/>
5151
<field name="currency_id" column_invisible="True"/>
52-
<field name="tax_id" domain="[('l10n_ar_withholding_payment_type', '=', parent.partner_type), ('company_id', '=', company_id)]" options="{'no_create': True}"/>
52+
<field name="tax_id" domain="[('l10n_ar_withholding_payment_type', '=', parent.partner_type), ('company_id', 'parent_of', parent.company_id)]" options="{'no_create': True}"/>
5353
<field name="name" readonly="withholding_sequence_id"/>
5454
<field name="base_amount"/>
5555
<field name="amount"/>

l10n_ar_tax/views/l10n_ar_payment_withholding_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<field name="withholding_sequence_id" invisible="True"/>
1212
<field name="company_id" invisible="True"/>
1313
<field name="currency_id" invisible="True"/>
14-
<field name="tax_id" domain="[('l10n_ar_withholding_payment_type', '=', parent.partner_type), ('company_id', '=', company_id)]" options="{'no_open': True, 'no_create': True}"/>
14+
<field name="tax_id" domain="[('l10n_ar_withholding_payment_type', '=', parent.partner_type), ('company_id', 'parent_of', parent.company_id)]" options="{'no_open': True, 'no_create': True}"/>
1515
<field name="name" readonly="withholding_sequence_id"/>
1616
<field name="base_amount"/>
1717
<field name="amount"/>

0 commit comments

Comments
 (0)