mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] connector_opencart: product update with checkpoint_summary
This commit is contained in:
@@ -79,6 +79,14 @@ class ProductImporter(Component):
|
|||||||
binding = super(ProductImporter, self)._create(data)
|
binding = super(ProductImporter, self)._create(data)
|
||||||
self.backend_record.add_checkpoint(binding, summary=checkpoint_summary)
|
self.backend_record.add_checkpoint(binding, summary=checkpoint_summary)
|
||||||
return binding
|
return binding
|
||||||
|
|
||||||
|
def _update(self, binding, data):
|
||||||
|
checkpoint_summary = data.get('checkpoint_summary', '')
|
||||||
|
if 'checkpoint_summary' in data:
|
||||||
|
del data['checkpoint_summary']
|
||||||
|
if checkpoint_summary:
|
||||||
|
self.backend_record.add_checkpoint(binding, summary=checkpoint_summary)
|
||||||
|
return super()._update(binding, data)
|
||||||
|
|
||||||
def _after_import(self, binding):
|
def _after_import(self, binding):
|
||||||
self._sync_options(binding)
|
self._sync_options(binding)
|
||||||
|
|||||||
Reference in New Issue
Block a user