release chinese city to yan

This commit is contained in:
ivan deng
2020-01-13 16:32:48 +08:00
parent 4a3419706f
commit c1f918d66a
7 changed files with 7 additions and 37 deletions

View File

@@ -18,7 +18,7 @@
{
'name': "App base chinese中国化基本模块增强",
'version': '13.20.01.11',
'version': '13.20.01.13',
'author': 'Sunpop.cn',
'category': 'Base',
'website': 'https://www.sunpop.cn',
@@ -55,7 +55,6 @@
'images': ['static/description/banner.jpg'],
'data': [
'views/res_partner_views.xml',
'views/res_country_views.xml',
'views/res_currency_views.xml',
'views/ir_default_views.xml',
'views/templates.xml',

View File

@@ -4,7 +4,6 @@ from . import res_partner
from . import res_currency
from . import product_category
from . import stock_location
from . import res_country

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!--目录list-->
<record id="app_view_country_tree" model="ir.ui.view">
<field name="name">res.country.tree</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="before">
<field name="sequence" widget="handle"/>
</xpath>
</field>
</record>
<!--目录Form-->
<record id="view_country_form" model="ir.ui.view">
<field name="name">app.res.country.form</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="sequence" widget="handle"/>
</xpath>
</field>
</record>
<!--搜索Form-->
</data>
</openerp>

View File

@@ -9,7 +9,7 @@
<xpath expr="//field[@name='parent_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name'}</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}</attribute>
</xpath>
</field>
</record>
@@ -21,7 +21,7 @@
<xpath expr="//field[@name='department_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name'}</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}</attribute>
</xpath>
</field>
</record>

View File

@@ -7,7 +7,7 @@
<field name="inherit_id" ref="app_mrp_superbar.app_view_mrp_production_workorder_form_view_filter"/>
<field name="arch" type="xml">
<xpath expr="//superbar//field[@name='workcenter_id']" position="replace">
<field name="workcenter_id" options="{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name'}"/>
<field name="workcenter_id" options="{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}"/>
</xpath>
</field>
</record>

View File

@@ -9,7 +9,7 @@
<xpath expr="//field[@name='categ_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' }</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name', 'order': 'name' }</attribute>
</xpath>
</field>
</record>
@@ -21,7 +21,7 @@
<xpath expr="//field[@name='parent_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'order': 'name' }</attribute>
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'order': 'name' }</attribute>
</xpath>
</field>

View File

@@ -9,7 +9,7 @@
<xpath expr="//field[@name='location_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="options">{'ztree_parent_key': 'location_id','ztree_expend_level': '2', 'ztree_name_field': 'name'}</attribute>
<attribute name="options">{'ztree_parent_key': 'location_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}</attribute>
</xpath>
</field>
</record>