Merge branch 'imp/12.0/connector_opencart__product_type' into '12.0-test'

imp/12.0/connector_opencart__product_type into 12.0-test

See merge request hibou-io/hibou-odoo/suite!952
This commit is contained in:
Hibou Bot
2021-08-11 20:07:28 +00:00

View File

@@ -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'}