[account] Regression: invoice residual amount not computed if payments are in domestic currency (5.0)

Bug #641314 reported by Dukai Gábor
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Undecided
Jay Vora (Serpent Consulting Services)

Bug Description

Hi!
Try to reconcile an invoice which is in the company's currency and the payment is also in the company's currency. The invoice will be done but the residual amount won't change.
This is a regression of <email address hidden> that is a fix of bug #511104.

Because the bank statement creates accounting entries in domestic currency with amount_currency=False
in account_bank_statement.button_confirm():
                amount_currency = False
                currency_id = False
                if st.currency.id <> company_currency_id:
                    amount_currency = move.amount
but in invoice._amount_residual():
                    credit += lines.credit > 0 and abs(lines.amount_currency) or 0.00

Related branches

Dukai Gábor (gdukai)
description: updated
Changed in openobject-addons:
assignee: nobody → Jay (OpenERP) (jvo-openerp)
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

A patch has been attached to bug 665154.
Can you please check?
Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

I correct, its bug 666154.

Revision history for this message
Dukai Gábor (gdukai) wrote :

It solves the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.