[FIX] account_analytic_analysis: currency were wrong when preparing recurring invoices
authorDenis Ledoux <dle@openerp.com>
Tue, 4 Feb 2014 11:52:26 +0000 (12:52 +0100)
committerDenis Ledoux <dle@openerp.com>
Tue, 4 Feb 2014 11:52:26 +0000 (12:52 +0100)
commit5aedbce4487856ddda80cd9ecf25de568e742b4f
tree43f22b3dc611e2dc6c56a82e9b1a8c3c1aa85726
parentbd4f015533654f8e4999dfff78d2d516908c5183
[FIX] account_analytic_analysis: currency were wrong when preparing recurring invoices

The id of the sale pricelist of the customer was set as currency_id, instead of using the id of the currency of the pricelist. (Obviously)
Furthermore, the currency of the contract pricelist takes the lead.
Then, if none of these two are set, we choose the currency of the company, finally.

bzr revid: dle@openerp.com-20140204115226-rowmbr5223fcu08k
addons/account_analytic_analysis/account_analytic_analysis.py