product_template.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="product_template_form_price_view">
  5. <field name="name">product.template.form.price.view</field>
  6. <field name="model">product.template</field>
  7. <field name="inherit_id" ref="product.product_template_only_form_view" />
  8. <field name="arch" type="xml">
  9. <field name="standard_price" position="replace">
  10. </field>
  11. <field name="cost_method" position="replace">
  12. </field>
  13. <field name="list_price" position="before">
  14. <field name="standard_price" string="Precio de Costo"/>
  15. </field>
  16. <field name="standard_price" position="replace">
  17. </field>
  18. <field name="list_price" position="before">
  19. <field name="standard_price" string="Precio de Costo"/>
  20. <field name="cost_method" string="Método de Costo"/>
  21. </field>
  22. </field>
  23. </record>
  24. <record id="product_template_hide" model="ir.ui.view">
  25. <field name="name">product.template_hide</field>
  26. <field name="model">product.template</field>
  27. <field name="inherit_id" ref="product.product_template_form_view"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//form/sheet/notebook//page[@string='Procurements']" position="attributes">
  30. <attribute name="attrs">{'invisible':True}</attribute>
  31. </xpath>
  32. <!-- <xpath expr="//form/sheet/notebook//page[@string='Sales']" position="attributes">
  33. <attribute name="attrs">{'invisible':True}</attribute>
  34. </xpath> -->
  35. <xpath expr="//form/sheet/notebook//page[@string='Inventory']" position="attributes">
  36. <attribute name="attrs">{'invisible':True}</attribute>
  37. </xpath>
  38. </field>
  39. </record>
  40. <record id="product_template_stock_widget_form_view" model="ir.ui.view">
  41. <field name="name">fields_security.stock.widget.form</field>
  42. <field name="model">product.template</field>
  43. <field name="inherit_id" ref="stock.product_template_form_view_procurement_button"/>
  44. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  45. <field name="arch" type="xml">
  46. <button name="action_view_routes" position="attributes">
  47. <attribute name="invisible">1</attribute>
  48. </button>
  49. <button name="action_view_orderpoints" position="attributes">
  50. <attribute name="invisible">1</attribute>
  51. </button>
  52. </field>
  53. </record>
  54. <record id="product_template_account_form_view" model="ir.ui.view">
  55. <field name="name">fields_security.account.form.view</field>
  56. <field name="model">product.template</field>
  57. <field name="inherit_id" ref="account.product_template_form_view"/>
  58. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  59. <field name="arch" type="xml">
  60. <field name="property_account_income" position="attributes">
  61. <attribute name="invisible">1</attribute>
  62. </field>
  63. <field name="property_account_expense" position="attributes">
  64. <attribute name="invisible">1</attribute>
  65. </field>
  66. </field>
  67. </record>
  68. <record id="product_template_account_purchase_form_view" model="ir.ui.view">
  69. <field name="name">fields_security.account.purchase.form.view</field>
  70. <field name="model">product.template</field>
  71. <field name="inherit_id" ref="purchase.view_product_account_purchase_ok_form"/>
  72. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  73. <field name="arch" type="xml">
  74. <field name="property_account_expense" position="attributes">
  75. <attribute name="invisible">1</attribute>
  76. </field>
  77. </field>
  78. </record>
  79. </data>
  80. </openerp>