Files
odoo-usability/sale_markup_group_user/sale_view.xml

77 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<!-- Inherit to remove groups="sale.group_sale_manager" -->
<record id="sale_markup_sale_order_tree" model="ir.ui.view">
<field name="name">sale.markup.remove.manager.group.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_markup.sale_markup_sale_order_tree" />
<field name="arch" type="xml">
<field name="markup_rate" position="attributes">
<attribute name="groups"></attribute>
</field>
</field>
</record>
<record id="sale_markup_quotation_tree" model="ir.ui.view">
<field name="name">sale.markup.remove.manager.group.quotation.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_markup.sale_markup_quotation_tree" />
<field name="arch" type="xml">
<field name="markup_rate" position="attributes">
<attribute name="groups"></attribute>
</field>
</field>
</record>
<record id="sale_markup_sale_order_line_tree" model="ir.ui.view">
<field name="name">sale.markup.remove.manager.group.order.line.tree</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale_markup.sale_markup_sale_order_line_tree" />
<field name="arch" type="xml">
<field name="commercial_margin" position="attributes">
<attribute name="groups"></attribute>
</field>
<field name="markup_rate" position="attributes">
<attribute name="groups"></attribute>
</field>
</field>
</record>
<record id="sale_markup_sale_order_form" model="ir.ui.view">
<field name="name">sale.markup.remove.manager.group.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_markup.sale_markup_sale_order_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='sale_total']/field[@name='markup_rate']" position="attributes">
<attribute name="groups"></attribute>
</xpath>
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='commercial_margin']"
position="attributes">
<attribute name="groups"></attribute>
</xpath>
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='markup_rate']"
position="attributes">
<attribute name="groups"></attribute>
</xpath>
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='cost_price']"
position="attributes">
<attribute name="groups"></attribute>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='markup_rate']"
position="attributes">
<attribute name="groups"></attribute>
</xpath>
</field>
</record>
</data>
</openerp>