1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <record id="view_daily_sales_report" model="ir.ui.view">
- <field name="name">POS Report</field>
- <field name="model">pos.report</field>
- <field name="arch" type="xml">
- <form string="Choose your details">
- <group>
- <group>
- <field name="date"/>
- <field name="date_to"/>
- </group>
- <group>
- <field name="point_of_sale" options="{'no_create': True}"/>
- <field name="sales_person" options="{'no_create': True}"/>
- </group>
- </group>
- <footer>
- <button name="print_sales_report" string="Print Report" type="object" class="oe_highlight"/>
- or
- <button string="Cancel" class="oe_link" special="cancel" />
- </footer>
- </form>
- </field>
- </record>
- <record id="get_daily_sales_report" model="ir.actions.act_window">
- <field name="name">POS Report</field>
- <field name="res_model">pos.report</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="view_id" ref="view_daily_sales_report"/>
- <field name="target">new</field>
- </record>
- <menuitem id="pos_daily_report" name="POS Report" parent="point_of_sale.menu_point_rep" action="get_daily_sales_report"/>
- </data>
- </openerp>
|