Files
enterprise-addons/industry_fsm_sale_subscription/models/project_task.py
T

13 lines
393 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.fields import Domain
class ProjectTask(models.Model):
_inherit = "project.task"
def action_fsm_view_material(self):
res = super().action_fsm_view_material()
res['domain'] = Domain.AND([res['domain'], [('recurring_invoice', '=', False)]])
return res