From a99f1d3c72ce417c888ea51c873fdef62a8a48cb Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 19 Dec 2019 16:57:33 -0600 Subject: [PATCH] [FIX] contract_sale_invoicing --- contract_sale_invoicing/__manifest__.py | 1 + contract_sale_invoicing/models/sale_order.py | 10 ++++++++++ contract_sale_invoicing/views/sale_order.xml | 14 ++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 contract_sale_invoicing/models/sale_order.py create mode 100644 contract_sale_invoicing/views/sale_order.xml 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 + + + + + + + + +