Skip to content

Commit

Permalink
[IMP] l10n_ar_edi_ux: agregar funcionalidad de debitar cheques propios.
Browse files Browse the repository at this point in the history
Tarea: 34995
Lo hacemos acá y no en l10n_ar_ux porque no tenemos enterprise y usamos acá un metodo de account_accountant.
  • Loading branch information
pablohmontenegro committed Dec 18, 2023
1 parent 391993c commit 7411abd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_ar_edi_ux/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'name': 'Argentinian Electronic Invoicing UX',
'version': "16.0.1.2.0",
'version': "16.0.1.3.0",
'category': 'Localization/Argentina',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
6 changes: 5 additions & 1 deletion l10n_ar_edi_ux/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from odoo import models, _
from odoo import models, fields, _
from odoo.exceptions import UserError
from odoo.tools import format_date
import datetime
Expand All @@ -7,6 +7,10 @@
class AccountJournal(models.Model):
_inherit = "account.journal"

check_add_debit_button = fields.Boolean(
string="Agregar botón de débito",
help="Si marca esta opción podrá debitar los cheques con un botón desde los mismo.")

def l10n_ar_check_afip_doc_types(self):
""" This method shows the valid document types for each Webservice. """
self.ensure_one()
Expand Down
11 changes: 11 additions & 0 deletions l10n_ar_edi_ux/views/account_journal_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@
</button>
</field>
</record>

<record id="view_account_journal_tree" model="ir.ui.view">
<field name="name">account.journal.tree</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="l10n_latam_check.view_account_journal_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='l10n_latam_manual_checks']/.." position="after">
<field name="check_add_debit_button" attrs="{'invisible': [('l10n_latam_manual_checks', '=', 'check_printing')]}"/>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 7411abd

Please sign in to comment.