diff --git a/app_product_advance_search_ztree/__init__.py b/app_product_advance_search_ztree/__init__.py index d2d2dd15..f5ba686b 100644 --- a/app_product_advance_search_ztree/__init__.py +++ b/app_product_advance_search_ztree/__init__.py @@ -1,7 +1,2 @@ # -*- coding: utf-8 -*- - - - - - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +from . import models \ No newline at end of file diff --git a/app_product_advance_search_ztree/__manifest__.py b/app_product_advance_search_ztree/__manifest__.py index cbb6f904..d688c86d 100644 --- a/app_product_advance_search_ztree/__manifest__.py +++ b/app_product_advance_search_ztree/__manifest__.py @@ -47,6 +47,7 @@ 'images': ['static/description/banner.png'], 'data': [ 'views/product_views.xml', + 'views/temp.xml', ], 'demo': [ ], diff --git a/app_product_advance_search_ztree/models/__init__.py b/app_product_advance_search_ztree/models/__init__.py new file mode 100644 index 00000000..1d3547ba --- /dev/null +++ b/app_product_advance_search_ztree/models/__init__.py @@ -0,0 +1,2 @@ + +from . import product \ No newline at end of file diff --git a/app_product_advance_search_ztree/models/product.py b/app_product_advance_search_ztree/models/product.py new file mode 100644 index 00000000..901ca317 --- /dev/null +++ b/app_product_advance_search_ztree/models/product.py @@ -0,0 +1,13 @@ +# Author: Damien Crier +# Copyright 2017 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + colorpicker = fields.Char( + string="Color Picker", + ) diff --git a/app_product_advance_search_ztree/views/temp.xml b/app_product_advance_search_ztree/views/temp.xml new file mode 100644 index 00000000..fd3580c8 --- /dev/null +++ b/app_product_advance_search_ztree/views/temp.xml @@ -0,0 +1,15 @@ + + + + + product_template_subcontracted_service_view_form + product.template + + + + + + + + +