[IMP] account: Add "To check" checkbox for invoices/bills.

Add the "To check" checkbox for invoices/bills
The "To check" checkbox is useful when an accountant want to be reviewed (or review later)
some entries as Odoo will add a reminder + counter in the related accounting journal dashboard.

Task ID: 2092088

closes odoo/odoo#39366

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
Florian Gilbert
2019-11-12 09:13:07 +00:00
parent ec603e2593
commit abed0272b6
2 changed files with 4 additions and 1 deletions
@@ -334,7 +334,7 @@
<t t-if="dashboard.number_to_check > 0">
<div class="row">
<div class="col-7 text-left">
<a type="object" name="open_action" context="{'action_name': 'action_move_journal_line', 'search_default_to_check': True}"><t t-esc="dashboard.number_to_check"/> to check</a>
<a type="object" name="open_action" context="{'search_default_to_check': True}"><t t-esc="dashboard.number_to_check"/> to check</a>
</div>
<div class="col-5 text-right">
<span><t t-esc="dashboard.to_check_balance"/></span>
@@ -946,6 +946,7 @@
<field name="invoice_source_email"
widget="email"
attrs="{'invisible': ['|', ('type', 'not in', ('in_invoice', 'in_refund')), ('invoice_source_email', '=', False)]}"/>
<field name="to_check"/>
</group>
<group string="Payments"
name="payments_info_group"
@@ -1043,6 +1044,8 @@
<filter name="draft" string="Draft" domain="[('state','=','draft')]"/>
<filter name="unpaid" string="Posted" domain="[('state', '=', 'posted'), ('invoice_payment_state', '=', 'not_paid')]"/>
<separator/>
<filter string="To Check" name="to_check" domain="[('to_check', '=', True)]"/>
<separator/>
<filter name="in_payment" string="In Payment" domain="[('invoice_payment_state', '=', 'in_payment')]"/>
<filter name="paid" string="Paid" domain="[('invoice_payment_state', '=', 'paid')]"/>
<filter name="late" string="Overdue" domain="['&amp;', ('invoice_date_due', '&lt;', time.strftime('%%Y-%%m-%%d')), ('state', '=', 'posted'), ('invoice_payment_state', '=', 'not_paid')]" help="Overdue invoices, maturity date passed"/>