mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-26 06:22:02 +02:00
Initial commit: Pos packages
This commit is contained in:
commit
95dfb9edb0
1301 changed files with 264148 additions and 0 deletions
3
odoo-bringout-oca-ocb-pos_hr/pos_hr/report/__init__.py
Normal file
3
odoo-bringout-oca-ocb-pos_hr/pos_hr/report/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import pos_order_report
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from functools import partial
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class PosOrderReport(models.Model):
|
||||
_inherit = "report.pos.order"
|
||||
employee_id = fields.Many2one(
|
||||
'hr.employee', string='Employee', readonly=True)
|
||||
|
||||
def _select(self):
|
||||
return super(PosOrderReport, self)._select() + ',s.employee_id AS employee_id'
|
||||
|
||||
def _group_by(self):
|
||||
return super(PosOrderReport, self)._group_by() + ',s.employee_id'
|
||||
Loading…
Add table
Add a link
Reference in a new issue