[FIX] event_sale: ticket price currency conversion
When adding a ticket to a SO, the currency of the SO is not taken into account in order to convert the ticket price. opw-702683
This commit is contained in:
@@ -61,4 +61,4 @@ class SaleOrderLine(models.Model):
|
||||
|
||||
@api.onchange('event_ticket_id')
|
||||
def _onchange_event_ticket_id(self):
|
||||
self.price_unit = self.event_ticket_id.price
|
||||
self.price_unit = (self.event_id.company_id or self.env.user.company_id).currency_id.compute(self.event_ticket_id.price, self.order_id.currency_id)
|
||||
|
||||
Reference in New Issue
Block a user