top_sales_view.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_top_sales_form" model="ir.ui.view">
  5. <field name="name">product.detail.form</field>
  6. <field name="model">product.detail</field>
  7. <field name="arch" type="xml">
  8. <form string="Detalles del producto">
  9. <group>
  10. <group>
  11. <field name="start_date"/>
  12. </group>
  13. <group>
  14. <field name="end_date"/>
  15. </group>
  16. <group>
  17. <field name="top_products" widget="radio"/>
  18. </group>
  19. <group>
  20. <field name="no_of_products"/>
  21. </group>
  22. </group>
  23. <footer>
  24. <button string='Imprimir' name="check_report" type="object" default_focus="1" class="oe_highlight"/>
  25. <button string="Cancelar" class="btn-default" special="cancel"/>
  26. </footer>
  27. </form>
  28. </field>
  29. </record>
  30. <record id="open_top_sales_action" model="ir.actions.act_window">
  31. <field name="name">Productos más vendidos</field>
  32. <field name="res_model">product.detail</field>
  33. <field name="view_type">form</field>
  34. <field name="view_mode">form</field>
  35. <field name="target">new</field>
  36. <field name="view_id" ref="view_top_sales_form"/>
  37. </record>
  38. </data>
  39. </openerp>