Skip to content

Commit

Permalink
[REM] l10n_ar_ux: Set debit note origin on invoice
Browse files Browse the repository at this point in the history
Move logic to account_ux module in order to be reused by another
localizations.
  • Loading branch information
zaoral committed Feb 15, 2022
1 parent 9244260 commit c8437e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions l10n_ar_ux/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
'name': 'Argentinian Accounting UX',
'version': "13.0.1.34.0",
'version': "13.0.1.35.0",
'category': 'Localization/Argentina',
'sequence': 14,
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'summary': '',
'depends': [
'account_debit_note',
'l10n_ar',
'account_check',
# for payment group report
Expand Down
6 changes: 0 additions & 6 deletions l10n_ar_ux/views/account_move_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
<button name="%(account_ux.action_account_change_currency)d" position="attributes">
<attribute name="string">(change currency)</attribute>
</button>
<!-- permitimos modificar "Factura origne de la ND" para poder vincular ND creadas a mano -->
<xpath expr="//group[@name='sale_info_group']/field[@name='debit_origin_id']" position="attributes">
<!-- <attribute name="attrs"></attribute> -->
<attribute name="attrs">{'invisible': [('type', '!=', 'out_invoice')], 'readonly': [('state', '!=', 'draft')]}</attribute>
<attribute name="domain">[('type', 'in', ('out_invoice', 'out_refund')), ('partner_id.commercial_partner_id', '=', commercial_partner_id), ('state', '=', 'posted')]</attribute>
</xpath>
</field>
</record>

Expand Down

0 comments on commit c8437e4

Please sign in to comment.