mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 23:52:05 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ReportProjectTaskUser(models.Model):
|
||||
_inherit = "report.project.task.user"
|
||||
|
||||
sale_line_id = fields.Many2one('sale.order.line', string='Sales Order Item', readonly=True)
|
||||
sale_order_id = fields.Many2one('sale.order', string='Sales Order', readonly=True)
|
||||
|
||||
def _select(self):
|
||||
return super()._select() + ", t.sale_line_id as sale_line_id, t.sale_order_id"
|
||||
|
||||
def _group_by(self):
|
||||
return super()._group_by() + ", t.sale_line_id, t.sale_order_id"
|
||||
Loading…
Add table
Add a link
Reference in a new issue