[FIX] Empty all current line(s) when you change template. Before, the display do it, but when you save, you have back the old lines.

bzr revid: jke@openerp.com-20140411142022-rceic1ma2axakzpe
This commit is contained in:
Kersten Jeremy 2014-04-11 16:20:22 +02:00
parent 563dd0c138
commit c2f3fffee6
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class sale_order(osv.osv):
context = {}
context = dict(context, lang=self.pool.get('res.partner').browse(cr, uid, partner, context).lang)
lines = []
lines = [(5,)]
quote_template = self.pool.get('sale.quote.template').browse(cr, uid, template_id, context=context)
for line in quote_template.quote_line:
res = self.pool.get('sale.order.line').product_id_change(cr, uid, False,