codigo_barra_view.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Product Template Form View -->
  5. <record model="ir.ui.view" id="product_template_form_view_barcode">
  6. <field name="name">product.template.form.view.barcode</field>
  7. <field name="model">product.template</field>
  8. <field name="inherit_id" ref="product.product_template_only_form_view" />
  9. <field name="arch" type="xml">
  10. <field name="type" position="before">
  11. <field name="factory_reference"/>
  12. </field>
  13. </field>
  14. </record>
  15. <!-- <record id="product_template_hide" model="ir.ui.view">
  16. <field name="name">product.template_hide</field>
  17. <field name="model">product.template</field>
  18. <field name="inherit_id" ref="product.product_template_form_view"/>
  19. <field name="arch" type="xml">
  20. <xpath expr="//form/sheet/notebook//page[@string='Procurements']" position="attributes">
  21. <attribute name="attrs">{'invisible':True}</attribute>
  22. </xpath>
  23. <xpath expr="//form/sheet/notebook//page[@string='Sales']" position="attributes">
  24. <attribute name="attrs">{'invisible':True}</attribute>
  25. </xpath>
  26. </field>
  27. </record> -->
  28. <!-- Product Form View -->
  29. <record model="ir.ui.view" id="product_form_view_barcode">
  30. <field name="name">product.form.view.barcode</field>
  31. <field name="model">product.product</field>
  32. <field name="inherit_id" ref="product.product_normal_form_view"/>
  33. <field name="arch" type="xml">
  34. <field name="type" position="before">
  35. <field name="factory_reference"/>
  36. </field>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>