[FIX] account: order on invoice lines based on sequence number (for complains, please refer to dle)

bzr revid: mat@openerp.com-20130903125900-wl1r1etx9pyhe185
This commit is contained in:
Martin Trigaux 2013-09-03 14:59:00 +02:00
parent cfd7130b74
commit 2130335727
2 changed files with 2 additions and 0 deletions

View File

@ -1407,6 +1407,7 @@ class account_invoice_line(osv.osv):
_name = "account.invoice.line"
_description = "Invoice Line"
_order = "invoice_id,sequence"
_columns = {
'name': fields.text('Description', required=True),
'origin': fields.char('Source Document', size=256, help="Reference of the document that produced this invoice."),

View File

@ -191,6 +191,7 @@
<page string="Invoice">
<field context="{'partner_id': partner_id, 'price_type': context.get('price_type') or False, 'type': type}" name="invoice_line">
<tree string="Invoice lines" editable="bottom">
<field name="sequence" widget="handle" />
<field name="product_id"
on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
<field name="name"/>