Browse Source

Merge PR #504 into 12.0

Signed-off-by pedrobaeza
pull/505/head
OCA-git-bot 4 years ago
parent
commit
3b72d59571
  1. 2
      pos_customer_required/models/pos_order.py

2
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:

Loading…
Cancel
Save