update color widget

This commit is contained in:
ivan deng
2019-03-27 19:07:20 +08:00
parent 0715eefddf
commit 0e4c1cc49f
2 changed files with 7 additions and 14 deletions

View File

@@ -20,26 +20,19 @@
# Odoo10离线开发手册下载-含python教程jquery参考Jinja2模板PostgresSQL参考odoo开发必备
# http://www.sunpop.cn/odoo10_developer_document_offline/
# Odoo, Open Source Web Widget Color
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# Copyright (C) 2014 Anybox <http://anybox.fr>
# Copyright (C) 2015 Taktik SA <http://taktik.be>
# Copyright (C) 2018 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).#
{
'name': "App Product Attribute Color",
'category': "Sales",
'version': "12.19.1.04",
"author": "Sunpop.cn",
'price': 0.00,
'price': 18.00,
'currency': 'EUR',
'summary': """
Use for quick select color. can be use in product attribute and other color variant. color widget. color picker.
""",
'images': ['static/description/banner.png'],
'depends': [
'app_web_widget_color',
'web_widget_colorpicker',
'sale',
],
'data': [

View File

@@ -7,7 +7,7 @@
<field name="inherit_id" ref="sale.product_attribute_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">color</attribute>
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>
@@ -19,7 +19,7 @@
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">color</attribute>
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>
@@ -30,7 +30,7 @@
<field name="inherit_id" ref="sale.product_template_attribute_value_view_tree_inherit"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">color</attribute>
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>
@@ -41,7 +41,7 @@
<field name="inherit_id" ref="sale.product_template_attribute_value_view_form_inherit"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">color</attribute>
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>
@@ -52,7 +52,7 @@
<field name="inherit_id" ref="sale.variants_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">color</attribute>
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>