From c195b0678fc79b609e6cdf893cddd8f9a35aae1f Mon Sep 17 00:00:00 2001 From: Krunal Date: Thu, 11 Jun 2020 17:39:01 +0530 Subject: [PATCH] [FIX] Fixed @api.constrains issue --- pos_customer_required/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos_customer_required/models/pos_order.py b/pos_customer_required/models/pos_order.py index e2ce7945..6929b4a8 100644 --- a/pos_customer_required/models/pos_order.py +++ b/pos_customer_required/models/pos_order.py @@ -15,7 +15,7 @@ class PosOrder(models.Model): related='session_id.config_id.require_customer', ) - @api.constrains('partner_id', 'require_customer') + @api.constrains('partner_id', 'session_id') def _check_partner(self): for rec in self: if rec.require_customer != 'no' and not rec.partner_id: