work on intercompany

This commit is contained in:
sonal arora
2020-09-02 15:21:19 +05:30
parent 7e96103d40
commit a8c3e9a5ef
115 changed files with 3152 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from odoo import models,fields
class SaleReport(models.Model):
_inherit = "sale.report"
intercompany_transfer_id = fields.Many2one('inter.company.transfer.ept', string="ICT", copy=False)
def _select(self):
qry = super(SaleReport,self)._select()
qry += ', s.intercompany_transfer_id as intercompany_transfer_id '
return qry
def _group_by(self):
qry = super(SaleReport,self)._group_by()
qry += ', s.intercompany_transfer_id '
return qry