Hi gholamq,

> One solution to this problem will be an automatic update of the field "Cost 
> Price" (default currency) by using the current conversion rate whenever a 
> value is entered or changed in the field "Cost Price in USD".
> 
> Has any body had and already solved this problem? How would the code look 
> like in Python for implementing the solution I proposed above? 


I think you can use the onchange method to do that. See that link :

http://www.openerp.com/wiki/index.php/Developers:Developper%27s_Book/The_views/ViewsDef/ViewsOnChange

By the way, we have the same problem as you to valuate our stock in different 
currencies (CHF and EUR). Did you find a solution ?

Thanks!

André

------------------------
André Kurz - www.hasa.ch - Open ERP Starter Partner
Hasa Sàrl - 1201 Genève




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=27459#27459

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to