res_partner.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- READONLY PARA base.group_sale_salesman-->
  5. <record id="readonly_partner_form" model="ir.ui.view">
  6. <field name="name">readonly_partner_form</field>
  7. <field name="model">res.partner</field>
  8. <field name="inherit_id" ref="base.view_partner_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='user_id']" position="attributes">
  11. <attribute name="readonly">1</attribute>
  12. </xpath>
  13. </field>
  14. </record>
  15. <record id="readonly_partner_form2" model="ir.ui.view">
  16. <field name="name">readonly_partner_form2</field>
  17. <field name="model">res.partner</field>
  18. <field name="inherit_id" ref="account.view_partner_property_form"/>
  19. <field name="arch" type="xml">
  20. <xpath expr="//field[@name='property_account_position']" position="attributes">
  21. <attribute name="readonly">1</attribute>
  22. </xpath>
  23. <xpath expr="//field[@name='property_account_receivable']" position="attributes">
  24. <attribute name="readonly">1</attribute>
  25. </xpath>
  26. <xpath expr="//field[@name='property_account_payable']" position="attributes">
  27. <attribute name="readonly">1</attribute>
  28. </xpath>
  29. <xpath expr="//field[@name='property_payment_term']" position="attributes">
  30. <attribute name="readonly">1</attribute>
  31. </xpath>
  32. <xpath expr="//field[@name='property_supplier_payment_term']" position="attributes">
  33. <attribute name="readonly">1</attribute>
  34. </xpath>
  35. </field>
  36. </record>
  37. <record id="readonly_partner_form3" model="ir.ui.view">
  38. <field name="name">readonly_partner_form3</field>
  39. <field name="model">res.partner</field>
  40. <field name="inherit_id" ref="product.view_partner_property_form"/>
  41. <field name="arch" type="xml">
  42. <xpath expr="//field[@name='property_product_pricelist']" position="attributes">
  43. <attribute name="readonly">1</attribute>
  44. </xpath>
  45. </field>
  46. </record>
  47. <record id="readonly_partner_form4" model="ir.ui.view">
  48. <field name="name">readonly_partner_form4</field>
  49. <field name="model">res.partner</field>
  50. <field name="inherit_id" ref="purchase.view_partner_property_form"/>
  51. <field name="arch" type="xml">
  52. <xpath expr="//field[@name='property_product_pricelist_purchase']" position="attributes">
  53. <attribute name="readonly">1</attribute>
  54. </xpath>
  55. </field>
  56. </record>
  57. <record id="readonly_partner_form5" model="ir.ui.view">
  58. <field name="name">readonly_partner_form5</field>
  59. <field name="model">res.partner</field>
  60. <field name="inherit_id" ref="stock.view_partner_property_form"/>
  61. <field name="arch" type="xml">
  62. <xpath expr="//field[@name='property_stock_customer']" position="attributes">
  63. <attribute name="readonly">1</attribute>
  64. </xpath>
  65. <xpath expr="//field[@name='property_stock_supplier']" position="attributes">
  66. <attribute name="readonly">1</attribute>
  67. </xpath>
  68. </field>
  69. </record>
  70. <record id="readonly_partner_form6" model="ir.ui.view">
  71. <field name="name">readonly_partner_form6</field>
  72. <field name="model">res.partner</field>
  73. <field name="inherit_id" ref="extra_data_dikasa.dikasa_partner_form2"/>
  74. <field name="arch" type="xml">
  75. <xpath expr="//field[@name='check_limit']" position="attributes">
  76. <attribute name="readonly">1</attribute>
  77. </xpath>
  78. <xpath expr="//field[@name='morosidad']" position="attributes">
  79. <attribute name="readonly">1</attribute>
  80. </xpath>
  81. </field>
  82. </record>
  83. <!-- EDTTABLE PARA GERENTE -->
  84. <record id="editable_partner_form" model="ir.ui.view">
  85. <field name="name">editable_partner_form</field>
  86. <field name="model">res.partner</field>
  87. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form"/>
  88. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  89. <field name="arch" type="xml">
  90. <xpath expr="//field[@name='user_id']" position="attributes">
  91. <attribute name="readonly">0</attribute>
  92. </xpath>
  93. </field>
  94. </record>
  95. <record id="editable_partner_form2" model="ir.ui.view">
  96. <field name="name">editable_partner_form2</field>
  97. <field name="model">res.partner</field>
  98. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form2"/>
  99. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  100. <field name="arch" type="xml">
  101. <xpath expr="//field[@name='property_account_position']" position="attributes">
  102. <attribute name="readonly">0</attribute>
  103. </xpath>
  104. <xpath expr="//field[@name='property_account_receivable']" position="attributes">
  105. <attribute name="readonly">0</attribute>
  106. </xpath>
  107. <xpath expr="//field[@name='property_account_payable']" position="attributes">
  108. <attribute name="readonly">0</attribute>
  109. </xpath>
  110. <xpath expr="//field[@name='property_payment_term']" position="attributes">
  111. <attribute name="readonly">0</attribute>
  112. </xpath>
  113. <xpath expr="//field[@name='property_supplier_payment_term']" position="attributes">
  114. <attribute name="readonly">0</attribute>
  115. </xpath>
  116. </field>
  117. </record>
  118. <record id="editable_partner_form3" model="ir.ui.view">
  119. <field name="name">editable_partner_form3</field>
  120. <field name="model">res.partner</field>
  121. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form3"/>
  122. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  123. <field name="arch" type="xml">
  124. <xpath expr="//field[@name='property_product_pricelist']" position="attributes">
  125. <attribute name="readonly">0</attribute>
  126. </xpath>
  127. </field>
  128. </record>
  129. <record id="editable_partner_form4" model="ir.ui.view">
  130. <field name="name">editable_partner_form4</field>
  131. <field name="model">res.partner</field>
  132. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form4"/>
  133. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  134. <field name="arch" type="xml">
  135. <xpath expr="//field[@name='property_product_pricelist_purchase']" position="attributes">
  136. <attribute name="readonly">0</attribute>
  137. </xpath>
  138. </field>
  139. </record>
  140. <record id="editable_partner_form5" model="ir.ui.view">
  141. <field name="name">editable_partner_form5</field>
  142. <field name="model">res.partner</field>
  143. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form5"/>
  144. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  145. <field name="arch" type="xml">
  146. <xpath expr="//field[@name='property_stock_customer']" position="attributes">
  147. <attribute name="readonly">0</attribute>
  148. </xpath>
  149. <xpath expr="//field[@name='property_stock_supplier']" position="attributes">
  150. <attribute name="readonly">0</attribute>
  151. </xpath>
  152. </field>
  153. </record>
  154. <record id="editable_partner_form6" model="ir.ui.view">
  155. <field name="name">editable_partner_form6</field>
  156. <field name="model">res.partner</field>
  157. <field name="inherit_id" ref="fields_security_dikasa.readonly_partner_form6"/>
  158. <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_manager')])]"/>
  159. <field name="arch" type="xml">
  160. <xpath expr="//field[@name='check_limit']" position="attributes">
  161. <attribute name="readonly">0</attribute>
  162. </xpath>
  163. <xpath expr="//field[@name='morosidad']" position="attributes">
  164. <attribute name="readonly">0</attribute>
  165. </xpath>
  166. </field>
  167. </record>
  168. </data>
  169. </openerp>