mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'imp/16.0/H13310_connector_opencart__recompute_taxes' into '16.0'
WIP: imp/16.0/H13310_connector_opencart__recompute_taxes into 16.0 See merge request hibou-io/hibou-odoo/suite!1652
This commit is contained in:
@@ -417,6 +417,12 @@ class SaleOrderImporter(Component):
|
|||||||
# There are products that were either just imported, or
|
# There are products that were either just imported, or
|
||||||
raise RetryableJobError('Products need setup. OpenCart Product IDs:' + str(products_need_setup), seconds=3600)
|
raise RetryableJobError('Products need setup. OpenCart Product IDs:' + str(products_need_setup), seconds=3600)
|
||||||
|
|
||||||
|
def _after_import(self, binding):
|
||||||
|
super(SaleOrderImporter, self)._after_import(binding)
|
||||||
|
# Recompute taxes
|
||||||
|
binding.odoo_id._recompute_taxes()
|
||||||
|
# Recompute prices? not for now, use the prices from the original order
|
||||||
|
# binding.odoo_id._recompute_prices()
|
||||||
|
|
||||||
class SaleImportRule(Component):
|
class SaleImportRule(Component):
|
||||||
_name = 'opencart.sale.import.rule'
|
_name = 'opencart.sale.import.rule'
|
||||||
|
|||||||
Reference in New Issue
Block a user