1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/industry_fsm_sale/models/res_config_settings.py
2024-12-10 09:04:09 +07:00

15 lines
478 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
def set_values(self):
fsm_projects = self.env['project.project'].sudo().search([('is_fsm', '=', True)])
if fsm_projects:
fsm_projects.write({'allow_quotations': self.group_industry_fsm_quotations})
return super().set_values()