From 44b3e74398838f67ceecf1ddec276216c961dfd6 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 9 Aug 2015 18:43:46 +0200 Subject: [PATCH] Move features of account_invoice_overdue_filter in account_usability Disable reconcile guessing in account_usability --- account_invoice_overdue_filter/__openerp__.py | 2 ++ account_usability/__openerp__.py | 9 +++++++ account_usability/account.py | 26 +++++++++++++++++++ account_usability/account_view.xml | 12 +++++++++ 4 files changed, 49 insertions(+) diff --git a/account_invoice_overdue_filter/__openerp__.py b/account_invoice_overdue_filter/__openerp__.py index 330f0c7..02e3d8c 100644 --- a/account_invoice_overdue_filter/__openerp__.py +++ b/account_invoice_overdue_filter/__openerp__.py @@ -33,6 +33,8 @@ Account Invoice Overdue Filter This module adds a filter *Overdue* in the invoice search view. +This module is deprecated and has been replaced by the module account_usability. + Please contact Alexis de Lattre from Akretion for any help or question about this module. """, 'author': 'Akretion', diff --git a/account_usability/__openerp__.py b/account_usability/__openerp__.py index a3c9342..b62613b 100644 --- a/account_usability/__openerp__.py +++ b/account_usability/__openerp__.py @@ -32,14 +32,23 @@ Account Usability ================= The usability enhancements include: +* show the supplier invoice number in the tree view of supplier invoices +* add an *Overdue* filter on invoice search view (this feature was previously located in te module *account_invoice_overdue_filter*) * Increase the default limit of 80 lines in account move and account move line view. * Fast search on *Reconcile Ref* for account move line. +* disable reconciliation "guessing" + +Together with this module, I recommend the use of the following modules: +* account_invoice_supplier_ref_unique (OCA project account-invoicing) +* account_move_line_no_default_search (OCA project account-financial-tools) +* invoice_fiscal_position_update (OCA project account-invoicing) This module has been written by Alexis de Lattre from Akretion . """, 'author': 'Akretion', 'website': 'http://www.akretion.com', 'depends': ['account'], + 'conflicts': ['account_invoice_overdue_filter'], 'data': ['account_view.xml'], 'installable': True, } diff --git a/account_usability/account.py b/account_usability/account.py index 6fe9492..1d803a9 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -53,3 +53,29 @@ class AccountMoveLine(models.Model): def _debit_onchange(self): if self.debit and self.credit: self.credit = 0 + + +class AccountBankStatementLine(models.Model): + _inherit = 'account.bank.statement.line' + + # Disable guessing for reconciliation + # because my experience with several customers shows that it is a problem + # in the following scenario : move line 'x' has been "guessed" by OpenERP + # to be reconciled with a statement line 'Y' at the end of the bank statement, + # but it is a mistake because it should be reconciled with statement line 'B' + # at the beginning of the bank statement + # When the user is on statement line 'B', he tries to select + # move line 'x', but it can't find it... because it is already "reserved" + # by the guess of OpenERP for statement line 'Y' ! To solve this problem, the + # user must go to statement line 'Y' and unselect move line 'x' and then come + # back on statement line 'B' and select move line 'A'... but non super-expert + # users can't do that because it is impossible to figure out that the fact that + # the user can't find move line 'x' is caused by this. + # Set search_reconciliation_proposition to False by default + def get_data_for_reconciliations( + self, cr, uid, ids, excluded_ids=None, + search_reconciliation_proposition=False, context=None): + return super(AccountBankStatementLine ,self).get_data_for_reconciliations( + cr, uid, ids, excluded_ids=excluded_ids, + search_reconciliation_proposition=search_reconciliation_proposition, + context=context) diff --git a/account_usability/account_view.xml b/account_usability/account_view.xml index 2c66ac1..397ef43 100644 --- a/account_usability/account_view.xml +++ b/account_usability/account_view.xml @@ -43,6 +43,18 @@ + + account_usability.invoice.search + account.invoice + + + + + + + + 500