diff --git a/models/sale_order.py b/models/sale_order.py index 1a0471ae80fb48b89729a1686ffdb64526535d52..7b0c5bf184c01f9115a01aeb069a0946cc0b2b04 100644 --- a/models/sale_order.py +++ b/models/sale_order.py @@ -97,6 +97,13 @@ class SaleOrder(models.Model): f_liquidated = fields.Boolean(string='F liquidado', required=False, default=False) r_liquidated = fields.Boolean(string='R liquidado', required=False, default=False) + @api.model + def fields_get(self, allfields=None, attributes=None): + res = super(SaleOrder, self).fields_get(allfields, attributes) + if res.get('commitment_date', False): + res['commitment_date']['searchable'] = False + return res + @api.constrains('commitment_date_custom') def _check_delivery_dates(self): sales = self.env['sale.order']