[IMP] contract: Add display sequence on contract lines (#119)

This commit is contained in:
Pedro Castro Silva
2017-11-18 18:25:25 +00:00
committed by Pedro M. Baeza
parent 684fda7613
commit 2bb7d9d73d
4 changed files with 9 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ from odoo.tools.translate import _
class AccountAnalyticInvoiceLine(models.Model):
_name = 'account.analytic.invoice.line'
_order = "sequence,id"
product_id = fields.Many2one(
'product.product',
@@ -54,6 +55,11 @@ class AccountAnalyticInvoiceLine(models.Model):
help='Discount that is applied in generated invoices.'
' It should be less or equal to 100',
)
sequence = fields.Integer(
string="Sequence",
default=10,
help="Sequence of the contract line when displaying contracts",
)
@api.multi
@api.depends('quantity', 'price_unit', 'discount')