diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..67dee8c --- /dev/null +++ b/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..80d49a5 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +{ + 'name': 'POS HR Restaurant', + 'version': '1.0', + 'category': 'Hidden', + 'summary': 'Link module between pos_hr and pos_restaurant', + 'description': """ +This module adapts the behavior of the PoS when the pos_hr and pos_restaurant are installed. +""", + 'depends': ['pos_hr', 'pos_restaurant'], + 'auto_install': True, + 'assets': { + 'point_of_sale._assets_pos': [ + 'pos_hr_restaurant/static/src/**/*', + ], + }, + 'license': 'LGPL-3', +} diff --git a/i18n/pos_hr_restaurant.pot b/i18n/pos_hr_restaurant.pot new file mode 100644 index 0000000..06d842d --- /dev/null +++ b/i18n/pos_hr_restaurant.pot @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-10-26 21:55+0000\n" +"PO-Revision-Date: 2023-10-26 21:55+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" diff --git a/static/src/overrides/models/pos_store.js b/static/src/overrides/models/pos_store.js new file mode 100644 index 0000000..0b0ca1b --- /dev/null +++ b/static/src/overrides/models/pos_store.js @@ -0,0 +1,11 @@ +/* @odoo-module */ + +import { patch } from "@web/core/utils/patch"; +import "@pos_restaurant/overrides/models/pos_store"; +import { PosStore } from "@point_of_sale/app/store/pos_store"; + +patch(PosStore.prototype, { + shouldResetIdleTimer() { + return this.tempScreen?.name !== "LoginScreen" && super.shouldResetIdleTimer(...arguments); + }, +});