[FIX] account_asset: asset in company currency
When the asset is created from an invoice line it should be in company currency and not in invoice currency
This commit is contained in:
committed by
qdp-odoo
parent
f5e3a52236
commit
7fe89d08b3
@@ -56,10 +56,10 @@ class AccountInvoiceLine(models.Model):
|
||||
'name': self.name,
|
||||
'code': self.invoice_id.number or False,
|
||||
'category_id': self.asset_category_id.id,
|
||||
'value': self.price_subtotal,
|
||||
'value': self.price_subtotal_signed,
|
||||
'partner_id': self.invoice_id.partner_id.id,
|
||||
'company_id': self.invoice_id.company_id.id,
|
||||
'currency_id': self.invoice_id.currency_id.id,
|
||||
'currency_id': self.invoice_id.company_currency_id.id,
|
||||
'date': self.asset_start_date or self.invoice_id.date_invoice,
|
||||
'invoice_id': self.invoice_id.id,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user