Skip to content

Commit 663826b

Browse files
[FIX] l10n_ar_withholding_ux: withholding type requerido
FW of change made in l10n_ar_account_withholding module but now applied to a more proper module (account_withholding_automatic was deprecated, and new l10n_ar_withholding_ux is the one used) Ticket: 81960 Este cambio va de la mano con el de este pr ingadhoc/account-payment#547 closes #941 X-original-commit: e4175b1 Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar> Signed-off-by: pablohmontenegro <pam@adhoc.com.ar>
1 parent ddcb39f commit 663826b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

l10n_ar_withholding_ux/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'name': 'Argentinian withholding UX',
3-
'version': "17.0.1.8.0",
3+
'version': "17.0.1.9.0",
44
'category': 'Localization/Argentina',
55
'sequence': 14,
66
'author': 'ADHOC SA',

l10n_ar_withholding_ux/models/account_tax.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class AccountTax(models.Model):
6060
# ('balance', 'Balance')
6161
],
6262
'Type',
63-
required=True,
6463
default='none',
6564
help="The computation method for the tax amount."
6665
)

l10n_ar_withholding_ux/views/account_tax_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<group name="withholdings">
2727
<label for="withholding_type"/>
2828
<div>
29-
<field name="withholding_type" class="oe_inline"/>
29+
<field name="withholding_type" class="oe_inline" required="country_code == 'AR'"/>
3030
</div>
3131
<field name="withholding_python_compute" invisible="withholding_type != 'code'" nolabel="1" colspan="2"/>
3232
<field name="withholding_rule_ids" invisible="withholding_type != 'based_on_rule'" nolabel="1" colspan="2">

0 commit comments

Comments
 (0)