product_view.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="product_template_form_view" model="ir.ui.view">
  5. <field name="model">product.template</field>
  6. <field name="inherit_id" ref="product.product_template_form_view"/>
  7. <!-- There is a position="replace" then we add a priority -->
  8. <!-- <field name="priority" eval="100"/> -->
  9. <field name="arch" type="xml">
  10. <xpath expr="//page[@string='Information']//field[@name='list_price']"
  11. position="replace">
  12. </xpath>
  13. <xpath expr="//page[@string='Sales']/group[@name='sale']" position="before">
  14. <group>
  15. <field name="list_price" string="Public price" invisible="1"/>
  16. <field name="pricelist_item_ids" colspan="4" nolabel="1"
  17. domain="[('price_version_id.pricelist_id.type', '=', 'sale'),
  18. ('price_version_id.price_grid', '=', True)]">
  19. <tree editable="top" create="0" delete="0">
  20. <field name="price_version_id"/>
  21. <field name="product_id" string="Product Variant"
  22. domain="[('product_tmpl_id', '=', parent.id)]"
  23. help="Define a price for this variant according to attribute price extra if any (tab 'Variants')" invisible="1"/>
  24. <field name="price_surcharge" string="Valor"/>
  25. <field name="date_end" invisible="1"/>
  26. <field name="price_discount" invisible="1"/>
  27. <field name="sequence" invisible="1"/>
  28. <field name="base" invisible="1"/>
  29. </tree>
  30. </field>
  31. </group>
  32. </xpath>
  33. </field>
  34. </record>
  35. </data>
  36. </openerp>