mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add
This commit is contained in:
@@ -1,7 +1,2 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
'images': ['static/description/banner.png'],
|
'images': ['static/description/banner.png'],
|
||||||
'data': [
|
'data': [
|
||||||
'views/product_views.xml',
|
'views/product_views.xml',
|
||||||
|
'views/temp.xml',
|
||||||
],
|
],
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
|
|||||||
2
app_product_advance_search_ztree/models/__init__.py
Normal file
2
app_product_advance_search_ztree/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
from . import product
|
||||||
13
app_product_advance_search_ztree/models/product.py
Normal file
13
app_product_advance_search_ztree/models/product.py
Normal file
@@ -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",
|
||||||
|
)
|
||||||
15
app_product_advance_search_ztree/views/temp.xml
Normal file
15
app_product_advance_search_ztree/views/temp.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
|
||||||
|
<record id="product_template_subcontracted_service_view_form" model="ir.ui.view">
|
||||||
|
<field name="name">product_template_subcontracted_service_view_form</field>
|
||||||
|
<field name="model">product.template</field>
|
||||||
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='type']" position="after">
|
||||||
|
<field name="colorpicker" widget="colorpicker" attr1="test"/>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user