Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion account_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Account UX',
'version': "13.0.1.25.0",
'version': "13.0.1.26.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
7 changes: 7 additions & 0 deletions account_ux/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ class AccountJournal(models.Model):
help="If set an email will be sent to the customer after the invoices"
" related to this journal has been validated.",
)
uso_del_diario = fields.Selection([
('without_statement','No generar extractos ni conciliar'),
('import_conciliation','Conciliación importando archivos/sincronización'),
('assistant_import','Conciliaciones a través del asistente de importación de líneas')
],
string="Uso del diario",
)

@api.constrains('currency_id')
def check_currency(self):
Expand Down
3 changes: 3 additions & 0 deletions account_ux/views/account_journal_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<field name="company_id" position="after">
<field name="mail_template_id" context="{'default_model': 'account.move'}"/>
</field>
<field name="default_credit_account_id" position="after">
<field name="uso_del_diario" attrs="{'invisible':[('type', 'not in', ['cash', 'bank'])]}"/>
</field>
</field>
</record>

Expand Down