mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] connector_opencart: recompute taxes and prices after order import
H13310
This commit is contained in:
@@ -417,6 +417,11 @@ 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 and prices
|
||||||
|
binding._recompute_taxes()
|
||||||
|
binding._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