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__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:
@@ -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