diff --git a/contract_sale_invoicing/__manifest__.py b/contract_sale_invoicing/__manifest__.py index 7cb91088..61bd643c 100644 --- a/contract_sale_invoicing/__manifest__.py +++ b/contract_sale_invoicing/__manifest__.py @@ -16,5 +16,6 @@ ], 'data': [ 'views/contract_view.xml', + 'views/sale_order.xml', ], } diff --git a/contract_sale_invoicing/models/sale_order.py b/contract_sale_invoicing/models/sale_order.py new file mode 100644 index 00000000..bf022e9e --- /dev/null +++ b/contract_sale_invoicing/models/sale_order.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019 Open Source Integrators +# Copyright (C) 2019 Serpent Consulting Services +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + contract_id = fields.Many2one('contract.contract', string='Contract') diff --git a/contract_sale_invoicing/views/sale_order.xml b/contract_sale_invoicing/views/sale_order.xml new file mode 100644 index 00000000..1119da73 --- /dev/null +++ b/contract_sale_invoicing/views/sale_order.xml @@ -0,0 +1,14 @@ + + + + sale.order.form.view + sale.order + + + + + + + + +