fix color

This commit is contained in:
ivan deng
2019-04-15 20:24:19 +08:00
parent 897bf5b1b1
commit fd4d3cfd59
3 changed files with 17 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
{
'name': "App base chinese中国化基本模块增强",
'version': '12.19.03.04',
'version': '12.19.04.15',
'author': 'Sunpop.cn',
'category': 'Base',
'website': 'https://www.sunpop.cn',
@@ -38,6 +38,7 @@
4. 货币处理,增加排序显示
6. 用户名支持翻译(可能会增加复杂度,后续看)
5. 修正产品类别的列表及m2o字段中不显示中文目录名的Bug
6. 修正仓库位置的列表及m2o字段中不显示中文目录名的Bug
11. todo:中文演示数据(只有demo模式才加载)
""",

View File

@@ -23,7 +23,7 @@
{
'name': "App Product Attribute Color",
'category': "Sales",
'version': "12.19.1.04",
'version': "12.19.04.15",
"author": "Sunpop.cn",
'price': 0.00,
'currency': 'EUR',

View File

@@ -6,12 +6,26 @@
<field name="model">product.attribute</field>
<field name="inherit_id" ref="sale.product_attribute_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='type']" position="attributes">
<attribute name="options">{'horizontal': true}</attribute>
</xpath>
<xpath expr="//field[@name='html_color']" position="attributes">
<attribute name="widget">colorpicker</attribute>
</xpath>
</field>
</record>
<record id="app_product_attribute_view_form2" model="ir.ui.view">
<field name="name">app.product.attribute.form.inherit2</field>
<field name="model">product.attribute</field>
<field name="inherit_id" ref="product.product_attribute_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='create_variant']" position="attributes">
<attribute name="options">{'horizontal': true}</attribute>
</xpath>
</field>
</record>
<record id="app_product_template_attribute_line_form" model="ir.ui.view">
<field name="name">app.product.template.attribute.line.form.inherit</field>
<field name="model">product.template.attribute.line</field>