diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 6cea4b90..b7e57492 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -9,7 +9,7 @@ { 'name': 'Contracts Management - Recurring', - 'version': '10.0.3.0.0', + 'version': '10.0.3.1.0', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "OpenERP SA, " diff --git a/contract/models/account_analytic_invoice_line.py b/contract/models/account_analytic_invoice_line.py index 8c87c062..12a61c65 100644 --- a/contract/models/account_analytic_invoice_line.py +++ b/contract/models/account_analytic_invoice_line.py @@ -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') diff --git a/contract/views/account_analytic_account_view.xml b/contract/views/account_analytic_account_view.xml index 9898d842..c2fc586a 100644 --- a/contract/views/account_analytic_account_view.xml +++ b/contract/views/account_analytic_account_view.xml @@ -60,6 +60,7 @@