mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] connector_opencart: products may need to be consumable, trust existing product config.
This commit is contained in:
@@ -17,8 +17,7 @@ class ProductImportMapper(Component):
|
||||
name = record.get('product_description', [{}])[0].get('name', record.get('id'))
|
||||
return {'name': unescape(name)}
|
||||
|
||||
# TODO more fields like pricing....
|
||||
|
||||
@only_create
|
||||
@mapping
|
||||
def product_type(self, record):
|
||||
return {'type': 'product' if record.get('shipping') else 'service'}
|
||||
|
||||
Reference in New Issue
Block a user