opt commission

This commit is contained in:
ivan deng
2019-04-15 02:38:36 +08:00
parent 29cfc5f417
commit ca6d6b412d
7 changed files with 58 additions and 8 deletions

View File

@@ -45,7 +45,7 @@
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"> <a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy this 1 chart hierarchy
</a> </a>
in odoo Store. Get free 4 related free apps. in odoo Store. Get free 5 related free apps.
</a> </a>
</h3> </h3>
<div class="oe_span12"> <div class="oe_span12">

View File

@@ -45,7 +45,7 @@
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"> <a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy this 1 chart hierarchy
</a> </a>
in odoo Store. Get free 4 related free apps. in odoo Store. Get free 5 related free apps.
</a> </a>
</h3> </h3>
<div class="oe_span12"> <div class="oe_span12">

View File

@@ -45,7 +45,7 @@
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"> <a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy this 1 chart hierarchy
</a> </a>
in odoo Store. Get free 4 related free apps. in odoo Store. Get free 5 related free apps.
</a> </a>
</h3> </h3>
<div class="oe_span12"> <div class="oe_span12">

View File

@@ -45,7 +45,7 @@
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"> <a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy this 1 chart hierarchy
</a> </a>
in odoo Store. Get free 4 related free apps. in odoo Store. Get free 5 related free apps.
</a> </a>
</h3> </h3>
<div class="oe_span12"> <div class="oe_span12">

View File

@@ -25,7 +25,7 @@
'name': 'User Alliance Distribution Chart Hierarchy, 多层级用户', 'name': 'User Alliance Distribution Chart Hierarchy, 多层级用户',
'version': '12.19.04.14', 'version': '12.19.04.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Stock', 'category': 'Sales',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',
'license': 'LGPL-3', 'license': 'LGPL-3',
'sequence': 2, 'sequence': 2,
@@ -44,7 +44,7 @@ child_all_count: child_all_count field, count of direct and indirect children.
'price': 0.00, 'price': 0.00,
'currency': 'EUR', 'currency': 'EUR',
'depends': [ 'depends': [
'base', 'sales_team',
], ],
'images': ['static/description/banner.gif'], 'images': ['static/description/banner.gif'],
'data': [ 'data': [

View File

@@ -45,7 +45,7 @@
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"> <a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy this 1 chart hierarchy
</a> </a>
in odoo Store. Get free 4 related free apps. in odoo Store. Get free 5 related free apps.
</a> </a>
</h3> </h3>
<div class="oe_span12"> <div class="oe_span12">

View File

@@ -6,7 +6,8 @@
<field name="inherit_id" ref="base.view_users_form"/> <field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="after"> <xpath expr="//field[@name='parent_id']" position="after">
<field name="user_parent_id"/> <field name="user_parent_id" groups="sales_team.group_sale_manager"/>
<field name="sale_team_id"/>
</xpath> </xpath>
<xpath expr="//div[@name='button_box']" position="after"> <xpath expr="//div[@name='button_box']" position="after">
<div id="o_node_container"> <div id="o_node_container">
@@ -43,4 +44,53 @@
</xpath> </xpath>
</field> </field>
</record> </record>
<record id="app_view_users_simple_form" model="ir.ui.view">
<field name="name">app.res.users.simplified.form</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_simple_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='phone']" position="before">
<field name="user_parent_id" groups="sales_team.group_sale_manager"/>
<field name="sale_team_id"/>
</xpath>
<xpath expr="//field[@name='image']" position="before">
<div id="o_node_container">
<div id="o_node_main">
<span id="add_image"/>
<span id="add_title"/>
<span id="add_group"/>
</div>
<div id="o_node_right">
<h4 class="o_chart_hierarchy_title mb16 mt0">Hierarchy Chart</h4>
<field name="user_child_ids" widget="web_chart_hierarchy"
string="Please get widget from https://apps.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"
context="{'form_view_ref':'base.view_users_form'}"
options="{
'image': 'image_small',
'desc': 'login',
'direct_sub': 'user_child_ids',
'child_all_count':'user_child_all_count'}"/>
</div>
</div>
</xpath>
</field>
</record>
<record id="app_view_users_simple_form2" model="ir.ui.view">
<field name="name">app.res.users.simplified.form2</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="app_view_users_simple_form"/>
<field name="arch" type="xml">
<xpath expr="//span[@id='add_image']" position="after">
<xpath expr="//field[@name='image']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_title']" position="after">
<xpath expr="//div[@class='oe_title']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_group']" position="after">
<xpath expr="//group" position="move"/>
</xpath>
</field>
</record>
</odoo> </odoo>