Browse Source

Pb droit website

12.0
Juliana 5 years ago
parent
commit
c72e7ba237
  1. 2
      controllers/main.py

2
controllers/main.py

@ -73,7 +73,7 @@ class VracoopWebsiteSaleDelivery(WebsiteSale):
def _check_carrier_type(self, **post):
order = request.website.sale_get_order()
carrier_id = int(post['carrier_id'])
carrier = request.env['delivery.carrier'].browse(carrier_id)
carrier = request.env['delivery.carrier'].sudo().browse(carrier_id)
point_retrait = carrier.point_retrait
if order:
return {'carrier_id': carrier_id,

Loading…
Cancel
Save