forked from Mapan/odoo17e
14 lines
426 B
Python
14 lines
426 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 _is_fsm_report_available(self):
|
|
return super()._is_fsm_report_available() or self.sale_order_id
|
|
|
|
def has_to_be_signed(self):
|
|
return super().has_to_be_signed() or (self.sale_order_id and not self.worksheet_signature)
|