You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ##############################################################################
  4. #
  5. # OpenERP, Open Source Management Solution
  6. # Copyright (C) 2010-2013 OpenERP s.a. (<http://openerp.com>).
  7. # Copyright (C) 2015 initOS GmbH & Co. KG (<http://www.initos.com>).
  8. #
  9. # This program is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU Affero General Public License as
  11. # published by the Free Software Foundation, either version 3 of the
  12. # License, or (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU Affero General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Affero General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. ##############################################################################
  23. -->
  24. <openerp>
  25. <data>
  26. <record id="view_pos_top_sellers_shop_report" model="ir.ui.view">
  27. <field name="name">pos.top.sellers.shop.report</field>
  28. <field name="model">pos.top.sellers.shop.report</field>
  29. <field name="arch" type="xml">
  30. <tree string="Best sellers by shop" create='false'/>
  31. <!--
  32. Content is created dynamically in fields_view_get()
  33. Do not add fields here!
  34. Do not inherit this view!
  35. -->
  36. </field>
  37. </record>
  38. <record id="action_pos_top_sellers_shop_report" model="ir.actions.act_window">
  39. <field name="name">Best sellers by shop</field>
  40. <field name="res_model">pos.top.sellers.shop.report</field>
  41. <field name="view_type">form</field>
  42. <field name="view_mode">pos_top_sellers_shop_view</field>
  43. <field name="target">current</field>
  44. </record>
  45. <record id="view_pos_top_sellers_product_report" model="ir.ui.view">
  46. <field name="name">pos.top.sellers.product.report</field>
  47. <field name="model">pos.top.sellers.product.report</field>
  48. <field name="arch" type="xml">
  49. <tree string="Recent sales by product/shop" create='false'>
  50. <field name="date"/>
  51. </tree>
  52. <!--
  53. Content is created dynamically in fields_view_get()
  54. Do not add fields here!
  55. Do not inherit this view!
  56. -->
  57. </field>
  58. </record>
  59. <record id="action_pos_top_sellers_product_report" model="ir.actions.act_window">
  60. <field name="name">Recent sales by product/shop</field>
  61. <field name="res_model">pos.top.sellers.product.report</field>
  62. <field name="view_type">form</field>
  63. <field name="view_mode">pos_top_sellers_product_view</field>
  64. <field name="target">current</field>
  65. </record>
  66. <menuitem name="Best sellers by shop" id="menu_pos_top_sellers_shop_report"
  67. parent="point_of_sale.menu_point_rep" action="action_pos_top_sellers_shop_report"
  68. sequence="40"/>
  69. <menuitem name="Recent sales by product/shop" id="menu_pos_top_sellers_product_report"
  70. parent="point_of_sale.menu_point_rep" action="action_pos_top_sellers_product_report"
  71. sequence="41"/>
  72. </data>
  73. </openerp>