update as per qdp review

bzr revid: al@openerp.com-20120214232448-54yp5vbnk1jw90dz
This commit is contained in:
Antony Lesuisse 2012-02-15 00:24:48 +01:00
parent c6287a3e23
commit f078a29e7d
1 changed files with 2 additions and 2 deletions

View File

@ -165,9 +165,9 @@ class stock_picking(osv.osv):
_inherit = "stock.picking"
def _prepare_invoice_line(self, cr, uid, group, picking, move_line, invoice_id, invoice_vals, context=None):
vals = super(stock_picking, self)._prepare_invoice_line(cr, uid, group, picking, move_line, invoice_id, invoice_vals, context)
vals = super(stock_picking, self)._prepare_invoice_line(cr, uid, group, picking, move_line, invoice_id, invoice_vals, context=context)
if "sequence" in self.pool.get("account.invoice.line")._all_columns and move_line.sale_line_id:
if move_line.sale_line_id:
vals['sequence'] = move_line.sale_line_id.sequence
return vals