mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Add display sequence on contract lines (#119)
This commit is contained in:
committed by
Pedro M. Baeza
parent
684fda7613
commit
2bb7d9d73d
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user