From 5cbd5f13f836c8b3beb2b7a8cf5093078639c0b1 Mon Sep 17 00:00:00 2001 From: Julien Legros Date: Fri, 24 Oct 2014 17:55:42 +0200 Subject: [PATCH] [FIX] event_sale: event tickets carried over on duplication --- addons/event_sale/event_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/event_sale/event_sale.py b/addons/event_sale/event_sale.py index f4549e96d7b..330deaca3da 100644 --- a/addons/event_sale/event_sale.py +++ b/addons/event_sale/event_sale.py @@ -129,7 +129,7 @@ class event_event(osv.osv): _inherit = 'event.event' event_ticket_ids = One2many('event.event.ticket', 'event_id', string='Event Ticket', - default=lambda rec: rec._default_tickets()) + default=lambda rec: rec._default_tickets(), copy=True) seats_max = Integer(string='Maximum Available Seats', help="The maximum registration level is equal to the sum of the maximum registration of event ticket. " + "If you have too much registrations you are not able to confirm your event. (0 to ignore this rule )",