mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_spread_cost_revenue to V12
This commit is contained in:
@@ -75,8 +75,8 @@ class AccountInvoiceSpreadLine(models.Model):
|
||||
company_currency = spread.company_id.currency_id
|
||||
current_currency = spread.currency_id
|
||||
not_same_curr = company_currency != current_currency
|
||||
amount = current_currency.with_context(date=spread_date).compute(
|
||||
self.amount, company_currency)
|
||||
amount = current_currency._convert(
|
||||
self.amount, company_currency, spread.company_id, spread_date)
|
||||
|
||||
line_ids = [(0, 0, {
|
||||
'name': spread.name.split('\n')[0][:64],
|
||||
|
||||
Reference in New Issue
Block a user