diff --git a/connector_magento_configurable/__manifest__.py b/connector_magento_configurable/__manifest__.py index 4072c35bb..15e85c3ee 100644 --- a/connector_magento_configurable/__manifest__.py +++ b/connector_magento_configurable/__manifest__.py @@ -11,6 +11,7 @@ 'data': [ 'security/ir.model.access.csv', 'views/magento_backend_views.xml', + 'views/product_template.xml', ], 'installable': True, 'auto_install': True, diff --git a/connector_magento_configurable/models/product_attribute/common.py b/connector_magento_configurable/models/product_attribute/common.py index 02d258e4f..59669f908 100644 --- a/connector_magento_configurable/models/product_attribute/common.py +++ b/connector_magento_configurable/models/product_attribute/common.py @@ -5,7 +5,6 @@ import logging from odoo import models, fields -from odoo.addons.component.core import Component _logger = logging.getLogger(__name__) diff --git a/connector_magento_configurable/security/ir.model.access.csv b/connector_magento_configurable/security/ir.model.access.csv index 75cfd695b..8cc3e1c89 100644 --- a/connector_magento_configurable/security/ir.model.access.csv +++ b/connector_magento_configurable/security/ir.model.access.csv @@ -1,16 +1,13 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_magento_product_configurable","magento_product_configurable connector manager","model_magento_product_configurable","connector.group_connector_manager",1,1,1,1 -"access_magento_product_configurable_user","magento_product_configurable user","model_magento_product_configurable","sales_team.group_sale_salesman",1,0,0,0 -"access_magento_product_configurable_sale_manager","magento_product_configurable sale manager","model_magento_product_configurable","sales_team.group_sale_manager",1,1,1,1 +"access_magento_product_template","magento_product_template connector manager","model_magento_product_template","connector.group_connector_manager",1,1,1,1 +"access_magento_product_template_user","magento_product_template user","model_magento_product_template","sales_team.group_sale_salesman",1,0,0,0 +"access_magento_product_template_sale_manager","magento_product_template sale manager","model_magento_product_template","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_sale_manager","magento_product_attribute sale manager","model_magento_product_attribute","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_user","magento_product_attribute user","model_magento_product_attribute","sales_team.group_sale_salesman",1,0,0,0 "access_magento_product_attribute_sale_manager","magento_product_attribute sale manager","model_magento_product_attribute","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_value_sale_manager","magento_product_attribute_value sale manager","model_magento_product_attribute_value","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_value_user","magento_product_attribute_value user","model_magento_product_attribute_value","sales_team.group_sale_salesman",1,0,0,0 "access_magento_product_attribute_value_sale_manager","magento_product_attribute_value sale manager","model_magento_product_attribute_value","sales_team.group_sale_manager",1,1,1,1 -"access_magento_product_attribute_line_sale_manager","magento_product_attribute_line sale manager","model_magento_product_attribute_line","sales_team.group_sale_manager",1,1,1,1 -"access_magento_product_attribute_line_user","magento_product_attribute_line user","model_magento_product_attribute_line","sales_team.group_sale_salesman",1,0,0,0 -"access_magento_product_attribute_line_sale_manager","magento_product_attribute_line sale manager","model_magento_product_attribute_line","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_price_sale_manager","magento_product_attribute_price sale manager","model_magento_product_attribute_price","sales_team.group_sale_manager",1,1,1,1 "access_magento_product_attribute_price_user","magento_product_attribute_price user","model_magento_product_attribute_price","sales_team.group_sale_salesman",1,0,0,0 "access_magento_product_attribute_price_sale_manager","magento_product_attribute_price sale manager","model_magento_product_attribute_price","sales_team.group_sale_manager",1,1,1,1 diff --git a/connector_magento_configurable/views/product_template.xml b/connector_magento_configurable/views/product_template.xml new file mode 100644 index 000000000..d558d4079 --- /dev/null +++ b/connector_magento_configurable/views/product_template.xml @@ -0,0 +1,36 @@ + + + + + product.template + + + + + + + \ No newline at end of file