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