Skip to content

Commit

Permalink
prevent copy of cancel reason and cost_estimate_id
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Nov 7, 2014
1 parent ed13df1 commit c7744c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions logistic_requisition/model/logistic_requisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit c7744c3

Please sign in to comment.