Skip to content

Commit

Permalink
[FIX] l10n_uy_edi: Re print PDF button
Browse files Browse the repository at this point in the history
Should be visible when the invoice is has been process by DGI/Uruware
  • Loading branch information
zaoral committed Oct 2, 2024
1 parent 32dfe55 commit 80098dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_uy_edi/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'author': 'ADHOC SA',
'category': 'Localization',
'license': 'LGPL-3',
'version': "16.0.1.9.0",
'version': "16.0.1.10.0",
'depends': [
'l10n_uy_account',
'account_debit_note',
Expand Down
2 changes: 1 addition & 1 deletion l10n_uy_edi/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<sheet position="before">
<div class="alert alert-danger" role="alert" style="margin-bottom:0px;" attrs="{'invisible': ['|', '|', ('l10n_uy_journal_type', 'not in', ['electronic', 'contingency']), ('state', '!=', 'posted'), ('l10n_uy_cfe_pdf', '!=', False)]}"><bold>Esta factura esta validada pero le falta el PDF legal asociado, por favor intente re generarlo</bold>
<button name="action_l10n_uy_get_pdf" type="object" string="(UY) Reprint Legal PDF" class="oe_inline oe_link" attrs="{
'invisible': ['|', ('l10n_uy_cfe_state', 'not in', ['received']), ('invoice_filter_type_domain', '=', 'purchase')]}" icon="fa-print"/>
'invisible': ['|', ('l10n_uy_cfe_state', 'not in', ['received', 'accepted', 'rejected']), ('invoice_filter_type_domain', '=', 'purchase')]}" icon="fa-print"/>
</div>
<div class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': ['|', '|', ('l10n_uy_journal_type', 'not in', ['electronic', 'contingency']), ('state', '!=', 'draft'), ('l10n_uy_cfe_pdf', '!=', False)]}"><bold>Esta factura aun no esta validada, asi que si intenta imprimir tendra un PDF no Legal</bold></div>
</sheet>
Expand Down

0 comments on commit 80098dd

Please sign in to comment.