mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'imp/12.0/connector_opencart' into '12.0-test'
imp/12.0/connector_opencart into 12.0-test See merge request hibou-io/hibou-odoo/suite!347
This commit is contained in:
@@ -37,7 +37,10 @@ class OpencartProductTemplate(models.Model):
|
||||
raise RetryableJobError('Order Product (%s) has option (%s) "%s" that is not mapped to an Odoo Attribute Value.' % (self, opencart_attribute_value.external_id, opencart_attribute_value.opencart_name))
|
||||
selected_attribute_values += opencart_attribute_value.odoo_id
|
||||
# Now that we know what options are selected, we can load a variant with those options
|
||||
return self.odoo_id._create_product_variant(selected_attribute_values)
|
||||
product = self.odoo_id._create_product_variant(selected_attribute_values, log_warning=True)
|
||||
if not product:
|
||||
raise Exception('No product can be created for selected attribute values, check logs. ' + str(selected_attribute_values))
|
||||
return product
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user