implement Uber delivery fee integration in sale orders and update docker-compose container naming
This commit is contained in:
parent
c256d80677
commit
3c6e33cc37
@ -24,12 +24,8 @@ class SaleOrder(models.Model):
|
||||
config = self.env['uber.config'].sudo().search([('active', '=', True)], limit=1)
|
||||
|
||||
carrier = Carrier.search([('name', 'ilike', 'Uber')], limit=1)
|
||||
if not carrier:
|
||||
# Fallback to any active carrier if no Uber one exists
|
||||
carrier = Carrier.search([('active', '=', True)], limit=1)
|
||||
|
||||
if not carrier and config and config.delivery_product_id:
|
||||
# Create a basic Uber carrier if strictly needed
|
||||
_logger.info("Uber: Creating new Uber Delivery carrier")
|
||||
carrier = Carrier.create({
|
||||
'name': 'Uber Delivery',
|
||||
'delivery_type': 'fixed',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user