Hi Quentin,
Just encountered an error :
ProgrammingError: argument of IS FALSE must be type boolean, not type integer
LINE 1: ...ERE currency_id = 5 AND name <= E'2011-05-31' AND currency_r...
^
Because in def compute(), currency_rate_type_from and currency_rate_type_to
parameters default values are False, keys are created in context with a False
value :
context.update({'currency_rate_type_from': currency_rate_type_from,
'currency_rate_type_to': currency_rate_type_to})
And in def _current_rate(), currency_rate_type =
context.get('currency_rate_type_id', None) means currency_rate_type stays to
False instead of None. ?
Thanks
--
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