From a73b4ccae47d0f6dff7666959c65f41f67fd77ea Mon Sep 17 00:00:00 2001 From: David Beal Date: Sat, 6 Apr 2019 14:02:23 +0200 Subject: [PATCH] FIX agreement_sale: oca remarks --- agreement_sale/__manifest__.py | 2 +- agreement_sale/models/sale.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agreement_sale/__manifest__.py b/agreement_sale/__manifest__.py index e186f0f0..50c9d932 100644 --- a/agreement_sale/__manifest__.py +++ b/agreement_sale/__manifest__.py @@ -11,7 +11,7 @@ 'website': 'https://github.com/oca/contract', 'license': 'AGPL-3', 'depends': [ - 'sale', + 'sale_management', 'agreement', ], 'data': [ diff --git a/agreement_sale/models/sale.py b/agreement_sale/models/sale.py index f78bd4ae..556db2f7 100644 --- a/agreement_sale/models/sale.py +++ b/agreement_sale/models/sale.py @@ -10,5 +10,5 @@ class SaleOrder(models.Model): agreement_id = fields.Many2one( comodel_name='agreement', string='Agreement', ondelete='restrict', - track_visibility='onchange', readonly=True, + track_visibility='onchange', readonly=True, copy=False, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]})