summaryrefslogtreecommitdiff
path: root/addons/account/views/account_invoice_view.xml
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-02-08 10:11:41 +0000
committerwan <wan@odoo.com>2019-02-08 10:11:41 +0000
commit969705fa2ae8bfd5e2d2cfce0241fcd56bebf01f (patch)
treeddfc35a278f022c3c62962a14b587de49bb67f4a /addons/account/views/account_invoice_view.xml
parent723789b6b1997568943bcf2fa879b8471838ec19 (diff)
[ADD] account: suspense account management
Task 1930403 Purpose: A suspense account is an account in the general ledger that temporarily stores any transactions for which there is uncertainty about the account in which they should be recorded. Once the accounting staff investigates and clarifies the purpose of this type of transaction, it shifts the transaction out of the suspense account and into the correct account(s). An entry into a suspense account may be a debit or a credit. The Chosen Odoo approach (macro) for this case is 1) from bank statement -> reconciliation widget -> reconciliation model 2) create move that have a dedicated checkbox 3) be able to reopen the bank statement line "like if there is no linked account move" and finally reconcile the transaction with the good invoice/bill (we can reprocess account move "to check") 4) when we reprocess, Instead of creating an account move : Check if there is an "to check" existing linked account move and remove all the account move lines then replace them by the good ones --> we want to keep the sequence closes odoo/odoo#30486
Diffstat (limited to 'addons/account/views/account_invoice_view.xml')
-rw-r--r--addons/account/views/account_invoice_view.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml
index 4ce645543b0..de71fb46ac2 100644
--- a/addons/account/views/account_invoice_view.xml
+++ b/addons/account/views/account_invoice_view.xml
@@ -271,7 +271,11 @@
<div groups="account.group_account_invoice" class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('has_outstanding','=',False)]}">
You have <bold><a class="alert-link" href="#outstanding" role="button">outstanding debits</a></bold> for this supplier. You can allocate them to mark this bill as paid.
</div>
+ <div groups="account.group_account_invoice" class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('edition_mode_available','=',False)]}">
+ You have suspense account moves that match this invoice. <bold><button class="alert-link" type="object" name="action_reconcile_to_check" role="button" string="Check them" style="padding: 0;vertical-align: baseline;"/></bold> to mark this invoice as paid.
+ </div>
<field name="has_outstanding" invisible="1"/>
+ <field name="edition_mode_available" invisible="1"/>
<sheet string="Vendor Bill">
<div>
<span class="o_form_label" attrs="{'invisible': ['|',('state','!=','draft'), ('type','!=','in_invoice')]}">Draft Bill</span>
@@ -424,7 +428,11 @@
<div groups="account.group_account_invoice" class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('has_outstanding','=',False)]}">
You have <bold><a class="alert-link" href="#outstanding" role="button">outstanding payments</a></bold> for this customer. You can allocate them to mark this invoice as paid.
</div>
+ <div groups="account.group_account_invoice" class="alert alert-info" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('edition_mode_available','=',False)]}">
+ You have suspense account moves that match this invoice. <bold><button class="alert-link" type="object" name="action_reconcile_to_check" role="button" string="Check them" style="padding: 0;vertical-align: baseline;"/></bold> to mark this invoice as paid.
+ </div>
<field name="has_outstanding" invisible="1"/>
+ <field name="edition_mode_available" invisible="1"/>
<sheet string="Invoice">
<div class="oe_button_box" name="button_box">
</div>