Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-812261-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #812261 in OpenERP Addons: "problem with the compute currency of account 
move line of an  invoice"
  https://bugs.launchpad.net/openobject-addons/+bug/812261

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-812261-bde/+merge/69954

Hello Sir,

I have made changes in def action_move_create in invoice.py in order to correct 
the calculation of Amount Currency field in account.move.line. 

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-812261-bde/+merge/69954
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-812261-bde.
=== modified file 'account/invoice.py'
--- account/invoice.py	2011-07-04 14:16:07 +0000
+++ account/invoice.py	2011-08-01 06:29:23 +0000
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+    # -*- coding: utf-8 -*-
 ##############################################################################
 #
 #    OpenERP, Open Source Management Solution
@@ -863,7 +863,7 @@
                 for t in totlines:
                     if inv.currency_id.id != company_currency:
                         amount_currency = cur_obj.compute(cr, uid,
-                                company_currency, inv.currency_id.id, t[1])
+                                company_currency, inv.currency_id.id, t[1], context={'date':inv.date_invoice})
                     else:
                         amount_currency = False
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to