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.

83 lines
3.6 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="type">ir.actions.act_window</field>
  41. <field name="res_model">pos.top.sellers.shop.report</field>
  42. <field name="view_type">form</field>
  43. <field name="view_mode">pos_top_sellers_shop_view</field>
  44. <field name="target">current</field>
  45. </record>
  46. <record id="view_pos_top_sellers_product_report" model="ir.ui.view">
  47. <field name="name">pos.top.sellers.product.report</field>
  48. <field name="model">pos.top.sellers.product.report</field>
  49. <field name="arch" type="xml">
  50. <tree string="Recent sales by product/shop" create='false'>
  51. <field name="date"/>
  52. </tree>
  53. <!--
  54. Content is created dynamically in fields_view_get()
  55. Do not add fields here!
  56. Do not inherit this view!
  57. -->
  58. </field>
  59. </record>
  60. <record id="action_pos_top_sellers_product_report" model="ir.actions.act_window">
  61. <field name="name">Recent sales by product/shop</field>
  62. <field name="type">ir.actions.act_window</field>
  63. <field name="res_model">pos.top.sellers.product.report</field>
  64. <field name="view_type">form</field>
  65. <field name="view_mode">pos_top_sellers_product_view</field>
  66. <field name="target">current</field>
  67. </record>
  68. <menuitem name="Best sellers by shop" id="menu_pos_top_sellers_shop_report"
  69. parent="point_of_sale.menu_point_rep" action="action_pos_top_sellers_shop_report"
  70. sequence="40"/>
  71. <menuitem name="Recent sales by product/shop" id="menu_pos_top_sellers_product_report"
  72. parent="point_of_sale.menu_point_rep" action="action_pos_top_sellers_product_report"
  73. sequence="41"/>
  74. </data>
  75. </openerp>