[account] wizard_pay_invoice may calculate a wrong invoice total (5.0) patch included!
Bug #496889 reported by
Dukai Gábor
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
High
|
OpenERP Core Team |
Bug Description
Hi!
5.0 latest bzr.
wizard_pay_invoice uses the balance amount of the invoice's account.move as the invoice total but in many cases they are not the same. For example in case of using the module account_anglo_saxon the account.move has additional COGS move lines that make that balance bigger than the invoice total and that makes the wizard malfunction.
The solution is to calculate only those lines that have the same account_id as the invoice.
Please check the attached patch for the idea, that clearly explains.
Thank you.
Related branches
summary: |
[account] wizard_pay_invoice may calculate a wrong invoice total (5.0) + patch included! |
Changed in openobject-addons: | |
status: | Fix Released → Confirmed |
importance: | Undecided → High |
assignee: | nobody → OpenERP Quality Team (openerp) |
To post a comment you must log in.
I can confirm this bug, specially with use of account_anglo_saxon module.
From functional point of view imho the pay invoice wizard should only check the lines related to the invoice, as suggested by Dukai. I didn't check the patch as others do have more programming experience.