Начальное наполнение

This commit is contained in:
parent 4e2a8951d5
commit 209835ee66
4 changed files with 49 additions and 0 deletions

2
__init__.py Normal file
View File

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

21
__manifest__.py Normal file
View File

@ -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',
}

View File

@ -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"

View File

@ -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);
},
});