Pinakin Nayi (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/7.0-opw-584599-pna into lp:openobject-addons/7.0.
Requested reviews: Naresh(OpenERP) (nch-openerp) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-584599-pna/+merge/144442 Hello , I fixed issue in account_voucher config file. Reproduce : 1. Enabled 'Allow Multi Currencies' under Settings/Configuration/Accounting. 2. In doing so, the screen asks for an exchange gain loss account.Select account in it. 3. After Click Apply the setting should be saved. When we come back to this screen the exchange gain loss account is blank. Thanks, pna -- https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-584599-pna/+merge/144442 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/7.0-opw-584599-pna.
=== modified file 'account_voucher/account_voucher.py' --- account_voucher/account_voucher.py 2012-12-21 16:32:52 +0000 +++ account_voucher/account_voucher.py 2013-01-23 07:18:21 +0000 @@ -57,6 +57,13 @@ relation='account.account', string="Loss Exchange Rate Account"), } + def get_default_income_currency_exchange_account_id(self, cr, uid, fields, context=None): + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + return {'income_currency_exchange_account_id': user.company_id.income_currency_exchange_account_id.id} + + def get_default_expense_currency_exchange_account_id(self, cr, uid, fields, context=None): + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + return {'expense_currency_exchange_account_id': user.company_id.expense_currency_exchange_account_id.id} class account_voucher(osv.osv): def _check_paid(self, cr, uid, ids, name, args, context=None):
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp