Browse Source

FIX agreement_sale: oca remarks

pull/309/head
David Beal 6 years ago
parent
commit
a73b4ccae4
  1. 2
      agreement_sale/__manifest__.py
  2. 2
      agreement_sale/models/sale.py

2
agreement_sale/__manifest__.py

@ -11,7 +11,7 @@
'website': 'https://github.com/oca/contract',
'license': 'AGPL-3',
'depends': [
'sale',
'sale_management',
'agreement',
],
'data': [

2
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)]})
Loading…
Cancel
Save