Skip to content
Snippets Groups Projects
Commit 10b342ca authored by Julien Castiaux's avatar Julien Castiaux
Browse files

[FIX] website_event_sale: free event


`price_reduce` is a computed field that depends on `price`.

opw-1961576

closes odoo/odoo#32800

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 1ab61efe
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class SaleOrder(models.Model):
values['product_id'] = ticket.product_id.id
values['event_id'] = ticket.event_id.id
values['event_ticket_id'] = ticket.id
values['price_unit'] = ticket.price_reduce or ticket.price
values['price_unit'] = ticket.price_reduce
values['name'] = "%s\n%s" % (ticket.event_id.display_name, ticket.name)
# avoid writing related values that end up locking the product record
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment