Add module sale_markup_group_user to address this issue : https://bugs.launchpad.net/sale-financial/+bug/1305987

This commit is contained in:
Alexis de Lattre
2014-04-10 18:23:11 +02:00
parent 98bc291b54
commit 4fb4ed9ca4
3 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<?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>