Skip to content

Commit

Permalink
temp rebasing PR 395 (7bb196c)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Sep 19, 2023
2 parents 61bf54a + 7bb196c commit 12b9843
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account_withholding/views/account_journal_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<!-- make default_account_id optional if withholdings journal -->
<field name="default_account_id" position="before">
<label for="default_account_id" string="Cuenta Retenciones predeterminada" attrs="{'invisible': [('type', '!=', 'general')]}"/>
</field>
<field name="default_account_id" position="attributes">

<attribute name="attrs">{'required': ['|', '&amp;', '&amp;', ('id', '!=', False), ('type', 'in', ('bank', 'cash')), '!', ('selected_payment_method_codes', 'like', 'withholding'), ('type', 'in', ('sale', 'purchase'))],
'invisible': [('type', '=', False)]}</attribute>
</field>
Expand Down

0 comments on commit 12b9843

Please sign in to comment.