From aab24354420280a2dc3372159741c150b1839040 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 10 Jan 2019 12:19:03 -0600 Subject: [PATCH] [FIX] agreement_sale --- agreement_sale/models/sale_order.py | 2 +- agreement_sale/views/agreement.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agreement_sale/models/sale_order.py b/agreement_sale/models/sale_order.py index e0ae0706..1d1e64ac 100644 --- a/agreement_sale/models/sale_order.py +++ b/agreement_sale/models/sale_order.py @@ -11,7 +11,7 @@ class SaleOrder(models.Model): 'agreement', string="Agreement Template", domain="[('is_template', '=', True)]") - agreement_id = fields.Many2one('agreement', string="Agreement") + agreement_id = fields.Many2one('agreement', string="Agreement", copy=False) @api.multi def _action_confirm(self): diff --git a/agreement_sale/views/agreement.xml b/agreement_sale/views/agreement.xml index d7a45551..cf2faf8a 100644 --- a/agreement_sale/views/agreement.xml +++ b/agreement_sale/views/agreement.xml @@ -12,7 +12,7 @@ - +