diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-06-05 12:14:42 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-06-05 12:14:42 +0200 |
| commit | d9bf42df87ab3cd7dc92c014c7396c0be577016e (patch) | |
| tree | db4d546b569f1d8f4752103218e1d1e73b7d8b8b | |
| parent | bdc8bf2d620765f57d8023b65477095060af64dc (diff) | |
| parent | 619bbffa5f832b7e1ac0053982b1ae03d8085cdc (diff) | |
[FIX] stock: fixed error in stock valuation entries
bzr revid: qdp-launchpad@openerp.com-20130605101442-45pyldayhkx3o66f
| -rw-r--r-- | addons/stock/stock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 277c9c39657..f794c56e949 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2423,8 +2423,8 @@ class stock_move(osv.osv): # or if it's the same as that of the secondary amount being posted. account_obj = self.pool.get('account.account') src_acct, dest_acct = account_obj.browse(cr, uid, [src_account_id, dest_account_id], context=context) - src_main_currency_id = src_acct.currency_id and src_acct.currency_id.id or src_acct.company_id.currency_id.id - dest_main_currency_id = dest_acct.currency_id and dest_acct.currency_id.id or dest_acct.company_id.currency_id.id + src_main_currency_id = src_acct.company_id.currency_id.id + dest_main_currency_id = dest_acct.company_id.currency_id.id cur_obj = self.pool.get('res.currency') if reference_currency_id != src_main_currency_id: # fix credit line: |
