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.

25 lines
658 B

  1. /*
  2. Copyright (C) 2017-Today: La Louve (<http://www.lalouve.net/>)
  3. Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. */
  7. odoo.define('pos_empty_home.db', function (require) {
  8. "use strict";
  9. var PosDB = require('point_of_sale.DB');
  10. PosDB.include({
  11. get_product_by_category: function(category_id){
  12. if (category_id != 0) {
  13. return this._super(category_id);
  14. } else {
  15. return [];
  16. }
  17. },
  18. });
  19. return PosDB;
  20. });