Initial commit: Pos packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 95dfb9edb0
1301 changed files with 264148 additions and 0 deletions

View file

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

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_hr_restaurant/static/src/js/**/*.js',
],
},
'license': 'LGPL-3',
}

View file

@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_hr_restaurant
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-06 13:32+0000\n"
"PO-Revision-Date: 2024-02-06 13:32+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"
#. module: pos_hr_restaurant
#: model:ir.model,name:pos_hr_restaurant.model_pos_order
msgid "Point of Sale Orders"
msgstr "Narudžbe POS-a"

View file

@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_hr_restaurant
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-06 13:32+0000\n"
"PO-Revision-Date: 2024-02-06 13:32+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"
#. module: pos_hr_restaurant
#: model:ir.model,name:pos_hr_restaurant.model_pos_order
msgid "Point of Sale Orders"
msgstr ""

View file

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

View file

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api
class PosOrder(models.Model):
_inherit = "pos.order"
def _get_fields_for_draft_order(self):
fields = super()._get_fields_for_draft_order()
fields.append('employee_id')
return fields
@api.model
def get_table_draft_orders(self, table_ids):
table_orders = super().get_table_draft_orders(table_ids)
for order in table_orders:
if order['employee_id']:
order['employee_id'] = order['employee_id'][0]
return table_orders

View file

@ -0,0 +1,14 @@
/* @odoo-module alias=pos_restaurant_hr.chrome */
import Chrome from 'point_of_sale.Chrome';
import Registries from 'point_of_sale.Registries';
export const PosHrRestaurantChrome = (Chrome) => class extends Chrome {
//@override
_shouldResetIdleTimer() {
return super._shouldResetIdleTimer() && this.tempScreen.name !== 'LoginScreen';
}
}
Registries.Component.extend(Chrome, PosHrRestaurantChrome);