From c7744c3443df9d38b6a097de55455f3db72a4f72 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Fri, 7 Nov 2014 15:09:49 +0100 Subject: [PATCH] prevent copy of cancel reason and cost_estimate_id --- logistic_requisition/model/logistic_requisition.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/logistic_requisition/model/logistic_requisition.py b/logistic_requisition/model/logistic_requisition.py index 2c09d0cf..ac739acc 100644 --- a/logistic_requisition/model/logistic_requisition.py +++ b/logistic_requisition/model/logistic_requisition.py @@ -164,7 +164,8 @@ def get_partner_requisition(self): 'logistic.requisition.cancel.reason', string='Reason for Cancellation', ondelete='restrict', - readonly=True) + readonly=True, + copy=False) _sql_constraints = [ ('name_uniq', @@ -416,7 +417,8 @@ class LogisticsRequisitionLine(models.Model): cost_estimate_id = fields.Many2one( 'sale.order', string='Cost Estimate', - readonly=True) + readonly=True, + copy=False) _sql_constraints = [ ('name_uniq',