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
25 lines
658 B
/*
|
|
Copyright (C) 2017-Today: La Louve (<http://www.lalouve.net/>)
|
|
Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
|
|
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
*/
|
|
|
|
|
|
odoo.define('pos_empty_home.db', function (require) {
|
|
"use strict";
|
|
|
|
var PosDB = require('point_of_sale.DB');
|
|
|
|
PosDB.include({
|
|
get_product_by_category: function(category_id){
|
|
if (category_id != 0) {
|
|
return this._super(category_id);
|
|
} else {
|
|
return [];
|
|
}
|
|
},
|
|
});
|
|
|
|
return PosDB;
|
|
});
|