flectra/addons/sale_service_rating/models/project.py
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

14 lines
422 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Task(models.Model):
_inherit = 'project.task'
def rating_get_partner_id(self):
if self.partner_id or self.sale_line_id.order_id.partner_id:
return self.partner_id or self.sale_line_id.order_id.partner_id
return super(Task, self).rating_get_partner_id()