[IMP]sale_usability_misc:make opportunity_id visible for sale manager group instead of dev mode group
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "sale_usability_misc",
|
||||
"version": "16.0.1.0.0",
|
||||
"version": "16.0.1.0.1",
|
||||
"author": "Elabore",
|
||||
"website": "https://elabore.coop",
|
||||
"maintainer": "Elabore",
|
||||
@@ -12,7 +12,7 @@
|
||||
"summary": "Various improves for Sales app",
|
||||
# any module necessary for this one to work correctly
|
||||
"depends": [
|
||||
"base","sale","sales_team",
|
||||
"base","sale","sales_team","sale_crm",
|
||||
],
|
||||
"qweb": [],
|
||||
"external_dependencies": {
|
||||
|
@@ -6,10 +6,25 @@
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='order_details']/div[@class='o_td_label' and @groups='base.group_no_one']" position="attributes">
|
||||
<xpath
|
||||
expr="//group[@name='order_details']/div[@class='o_td_label' and @groups='base.group_no_one']"
|
||||
position="attributes">
|
||||
<attribute name="groups">sales_team.group_sale_manager</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//group[@name='order_details']/field[@name='date_order' and @groups='base.group_no_one']" position="attributes">
|
||||
<xpath
|
||||
expr="//group[@name='order_details']/field[@name='date_order' and @groups='base.group_no_one']"
|
||||
position="attributes">
|
||||
<attribute name="groups">sales_team.group_sale_manager</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sale_opportunity_not_dev_inherit" model="ir.ui.view">
|
||||
<field name="name">sale.opportunity.not.dev.inherit</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale_crm.sale_view_inherit123" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='opportunity_id']" position="attributes">
|
||||
<attribute name="groups">sales_team.group_sale_manager</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
|
Reference in New Issue
Block a user