Bug with tax line computing

Bug #458553 reported by Open Net Sàrl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

In the file account/invoice.py, two functions of the class "account_invoice_tax" are returning the ID of the company instead of the ID of the currency.
The two function are: base_change( ... ) and amount_change( ... )
In both functions, the line:
    company_currency=company_obj.browse(cr,uid,company_id).id
should be replaced by:
    company_currency=company_obj.browse(cr,uid,company_id).currency_id.id

Not doing this change results in having a result amount computed with the wrong currency object in the case where the ID of the company not being the same as the company's currency object

Best regards

Related branches

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

Extremely sorry for this.
It needs to be changd immediately.
Thank you for reporting.

Changed in openobject-server:
status: New → Confirmed
affects: openobject-server → openobject-addons
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanking you once again.
It could have been proved critical.

Fixed by revision 2444 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
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.