product_view.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- <record id="product_readonly_template_only_form_view" model="ir.ui.view">
  5. <field name="name">cost_security.product.form</field>
  6. <field name="model">product.template</field>
  7. <field name="inherit_id" ref="stock_account.view_template_property_form"/>
  8. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_cost_prices')])]"/>
  9. <field name="arch" type="xml">
  10. <field name="standard_price" position="attributes">
  11. <attribute name="invisible">1</attribute>
  12. </field>
  13. <label for="standard_price" position="attributes">
  14. <attribute name="invisible">1</attribute>
  15. </label>
  16. </field>
  17. </record> -->
  18. <record id="product_readonly_template_only_form_view" model="ir.ui.view">
  19. <field name="name">cost_security.product.security.form</field>
  20. <field name="model">product.template</field>
  21. <field name="inherit_id" ref="product_barcode_athletic.product_template_form_view_barcode"/>
  22. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_cost_prices')])]"/>
  23. <field name="arch" type="xml">
  24. <field name="standard_price" position="attributes">
  25. <attribute name="invisible">1</attribute>
  26. </field>
  27. <label for="standard_price" position="attributes">
  28. <attribute name="invisible">1</attribute>
  29. </label>
  30. </field>
  31. </record>
  32. <record id="product_readonly_product_only_form_view" model="ir.ui.view">
  33. <field name="name">cost_security.product.product.form</field>
  34. <field name="model">product.product</field>
  35. <field name="inherit_id" ref="product_barcode_athletic.product_form_view_barcode"/>
  36. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_cost_prices')])]"/>
  37. <field name="arch" type="xml">
  38. <field name="standard_price" position="attributes">
  39. <attribute name="invisible">1</attribute>
  40. </field>
  41. <label for="standard_price" position="attributes">
  42. <attribute name="invisible">1</attribute>
  43. </label>
  44. </field>
  45. </record>
  46. </data>
  47. </openerp>