pos_report_menu.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="view_daily_sales_report" model="ir.ui.view">
  5. <field name="name">POS Report</field>
  6. <field name="model">pos.report</field>
  7. <field name="arch" type="xml">
  8. <form string="Choose your details">
  9. <group>
  10. <group>
  11. <field name="date"/>
  12. <field name="date_to"/>
  13. </group>
  14. <group>
  15. <field name="point_of_sale" options="{'no_create': True}"/>
  16. <field name="sales_person" options="{'no_create': True}"/>
  17. </group>
  18. </group>
  19. <footer>
  20. <button name="print_sales_report" string="Print Report" type="object" class="oe_highlight"/>
  21. or
  22. <button string="Cancel" class="oe_link" special="cancel" />
  23. </footer>
  24. </form>
  25. </field>
  26. </record>
  27. <record id="get_daily_sales_report" model="ir.actions.act_window">
  28. <field name="name">POS Report</field>
  29. <field name="res_model">pos.report</field>
  30. <field name="view_type">form</field>
  31. <field name="view_mode">tree,form</field>
  32. <field name="view_id" ref="view_daily_sales_report"/>
  33. <field name="target">new</field>
  34. </record>
  35. <menuitem id="pos_daily_report" name="POS Report" parent="point_of_sale.menu_point_rep" action="get_daily_sales_report"/>
  36. </data>
  37. </openerp>