product_template.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="product_template_only_form_view" model="ir.ui.view">
  5. <field name="name">ProductTemplateOnlyFormView</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="description" position="before">
  10. <group>
  11. <group string="Precios de Venta">
  12. <field name="pricelists" nolabel="1" colspan="2" context="{'product_template_id': active_id}">
  13. <tree string="Sale Prices" editable="bottom" create="false" delete="false" colors="red:product_price_manual">
  14. <field name="name" readonly="1"/>
  15. <field name="product_price_manual" invisible="1"/>
  16. <field name="product_price" string="Precio"/>
  17. <button type="object" icon="STOCK_CLOSE"
  18. name="remove_price_manual"
  19. />
  20. </tree>
  21. </field>
  22. </group>
  23. <group string="Precios de Compra">
  24. <field name="purchase_pricelists" nolabel="1" colspan="2" context="{'product_template_id': active_id}">
  25. <tree string="Purchase Prices" editable="bottom" create="false" delete="false" colors="red:product_price_manual">
  26. <field name="name" readonly="1"/>
  27. <field name="product_price_manual" invisible="1"/>
  28. <field name="product_price" string="Precio"/>
  29. <button type="object" icon="STOCK_CLOSE"
  30. name="remove_price_manual"
  31. />
  32. </tree>
  33. </field>
  34. </group>
  35. </group>
  36. </field>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>