implement Uber delivery fee synchronization in sale orders and update docker container naming conventions
This commit is contained in:
parent
2a6f31faf0
commit
3a91dc3028
@ -35,6 +35,16 @@ class SaleOrder(models.Model):
|
|||||||
'delivery_type': 'fixed',
|
'delivery_type': 'fixed',
|
||||||
'product_id': config.delivery_product_id.id,
|
'product_id': config.delivery_product_id.id,
|
||||||
'website_published': True,
|
'website_published': True,
|
||||||
|
'fixed_price': 0.0,
|
||||||
|
})
|
||||||
|
|
||||||
|
if carrier:
|
||||||
|
# Force carrier to be published and global to avoid "No shipping method" error
|
||||||
|
carrier.write({
|
||||||
|
'website_published': True,
|
||||||
|
'active': True,
|
||||||
|
'country_ids': [(6, 0, [])],
|
||||||
|
'state_ids': [(6, 0, [])],
|
||||||
})
|
})
|
||||||
|
|
||||||
if carrier:
|
if carrier:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user