123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <?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="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="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="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="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="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>
- <record id="readonly_partner_form6" model="ir.ui.view">
- <field name="name">readonly_partner_form6</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="extra_data_dikasa.dikasa_partner_form2"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='check_limit']" position="attributes">
- <attribute name="readonly">1</attribute>
- </xpath>
- <xpath expr="//field[@name='morosidad']" position="attributes">
- <attribute name="readonly">1</attribute>
- </xpath>
- </field>
- </record>
- <!-- EDTTABLE PARA GERENTE -->
- <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="fields_security_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="fields_security_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="fields_security_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="fields_security_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="fields_security_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>
- <record id="editable_partner_form6" model="ir.ui.view">
- <field name="name">editable_partner_form6</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form6"/>
- <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='check_limit']" position="attributes">
- <attribute name="readonly">0</attribute>
- </xpath>
- <xpath expr="//field[@name='morosidad']" position="attributes">
- <attribute name="readonly">0</attribute>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|