[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:
Nicolas Martinelli
2016-12-26 16:25:45 +01:00
parent 634fb9f390
commit 285964b710
+1 -1
View File
@@ -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)