Skip to content

Commit

Permalink
Allow to disable rate date check via the context
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre committed Jul 31, 2012
1 parent e6ff581 commit 9780499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion currency_rate_date_check/currency_rate_date_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class res_currency(osv.osv):
def _current_rate_with_date_check(self, cr, uid, ids, name, arg, context=None):
# We only do the check if there is an explicit date in the context and
# there is no specific currency_rate_type_id
if context and context.get('date', False) and not context.get('currency_rate_type_id', False):
if context and context.get('date') and not context.get('currency_rate_type_id') and not context.get('disable_rate_date_check'):
#print "context=", context
for currency_id in ids:
#print "currency_id=", currency_id
Expand Down

0 comments on commit 9780499

Please sign in to comment.