Merge lp:~camptocamp/account-invoicing/7.0-account_invoice_zero into lp:~account-core-editors/account-invoicing/7.0
Proposed by
Guewen Baconnier @ Camptocamp
Status: | Merged |
---|---|
Approved by: | Yannick Vaucher @ Camptocamp |
Approved revision: | 42 |
Merged at revision: | 42 |
Proposed branch: | lp:~camptocamp/account-invoicing/7.0-account_invoice_zero |
Merge into: | lp:~account-core-editors/account-invoicing/7.0 |
Diff against target: |
215 lines (+189/-0) 5 files modified
account_invoice_zero/__init__.py (+3/-0) account_invoice_zero/__openerp__.py (+52/-0) account_invoice_zero/account_invoice.py (+50/-0) account_invoice_zero/test/account_invoice_no_zero_open.yml (+40/-0) account_invoice_zero/test/account_invoice_zero_paid.yml (+44/-0) |
To merge this branch: | bzr merge lp:~camptocamp/account-invoicing/7.0-account_invoice_zero |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | code review | Approve | |
Vincent Renaville@camptocamp (community) | Approve | ||
Yannick Vaucher @ Camptocamp | code review | Approve | |
Review via email: mp+210215@code.launchpad.net |
Commit message
add account_
Description of the change
Invoices with a amount of 0 are automatically set as paid.
When an invoice has an amount of 0, OpenERP still generates a
receivable/payable move line with a 0 balance. The invoice stays as
open even if there is nothing to pay. The user has 2 ways to set the
invoice as paid: create a payment of 0 and reconcile the line with the
payment or reconcile the receivable/payable move line with itself.
This module takes the latter approach and will directly set the invoice
as paid once it is opened.
To post a comment you must log in.
Hello,
Juste question at line 109
I don't know if it's better to use float_compare method with precision
prec = self.pool. get('decimal. precision' ).precision_ get(cr, uid, 'Account') debit, credit, precision_ digits= prec)
not float_compare(
Vincent