Just replaced
currency_rate_type = context.get('currency_rate_type_id', None)
by
currency_rate_type = context.get('currency_rate_type_id') or None
and it works (None is already the default value of get())
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-currency_rate_type-mra/+merge/72143
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/trunk-currency_rate_type-mra.
_______________________________________________
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