44
47
res_user = res_user_obj.browse(cr, uid, uid, context=context)
45
48
company_currency = res_user.company_id.currency_id
50
57
if amount_currency != 0 and currency_id:
51
58
"""3. Get amount_currency for today"""
52
59
currency_selected = res_currency_obj.browse(cr, uid, currency_id, context=context)
53
exchange_amount = res_currency_obj.get_exchange_rate(cr, uid, company_currency, currency_selected, now, context=context)
60
exchange_amount = res_currency_obj.get_exchange_rate(cr, uid, company_currency, currency_selected, date, context=copy_context)
55
62
"""4. Asign values to debit or credit """