|
@@ -0,0 +1,162 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <!-- READONLY PARA base.group_sale_salesman-->
|
|
|
+
|
|
|
+ <record id="readonly_partner_form" model="ir.ui.view">
|
|
|
+ <field name="name">readonly_partner_form</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="base.view_partner_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='user_id']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="readonly_partner_form2" model="ir.ui.view">
|
|
|
+ <field name="name">readonly_partner_form2</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_account_position']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_account_receivable']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_account_payable']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_payment_term']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+
|
|
|
+ <xpath expr="//field[@name='property_supplier_payment_term']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="readonly_partner_form3" model="ir.ui.view">
|
|
|
+ <field name="name">readonly_partner_form3</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="product.view_partner_property_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_product_pricelist']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="readonly_partner_form4" model="ir.ui.view">
|
|
|
+ <field name="name">readonly_partner_form4</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="purchase.view_partner_property_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_product_pricelist_purchase']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="readonly_partner_form5" model="ir.ui.view">
|
|
|
+ <field name="name">readonly_partner_form5</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="stock.view_partner_property_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_stock_customer']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_stock_supplier']" position="attributes">
|
|
|
+ <attribute name="readonly">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <!-- EDTTABLE PARA -->
|
|
|
+
|
|
|
+ <record id="editable_partner_form" model="ir.ui.view">
|
|
|
+ <field name="name">editable_partner_form</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="extra_data_dikasa.readonly_partner_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='user_id']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="editable_partner_form2" model="ir.ui.view">
|
|
|
+ <field name="name">editable_partner_form2</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="extra_data_dikasa.readonly_partner_form2"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_account_position']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_account_receivable']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_account_payable']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_payment_term']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+
|
|
|
+ <xpath expr="//field[@name='property_supplier_payment_term']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="editable_partner_form3" model="ir.ui.view">
|
|
|
+ <field name="name">editable_partner_form3</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="extra_data_dikasa.readonly_partner_form3"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_product_pricelist']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="editable_partner_form4" model="ir.ui.view">
|
|
|
+ <field name="name">editable_partner_form4</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="extra_data_dikasa.readonly_partner_form4"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_product_pricelist_purchase']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record id="editable_partner_form5" model="ir.ui.view">
|
|
|
+ <field name="name">editable_partner_form5</field>
|
|
|
+ <field name="model">res.partner</field>
|
|
|
+ <field name="inherit_id" ref="extra_data_dikasa.readonly_partner_form5"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//field[@name='property_stock_customer']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//field[@name='property_stock_supplier']" position="attributes">
|
|
|
+ <attribute name="readonly">0</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ </data>
|
|
|
+</openerp>
|