feat: refactor dlv_fleetflow_contactflow — add customers/suppliers endpoints, settings tab, make busenco_custom optional

This commit is contained in:
Kristof Bernaert
2026-06-14 13:31:04 +02:00
parent d8533753d1
commit 3db8a14fab
7 changed files with 286 additions and 104 deletions
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
fleetflow_busenco_installed = fields.Boolean(
string="busenco_custom installed",
compute="_compute_fleetflow_busenco_installed",
readonly=True,
store=False,
)
@api.depends_context("uid")
def _compute_fleetflow_busenco_installed(self):
installed = self.env["ir.module.module"].sudo().search_count([
("name", "=", "busenco_custom"),
("state", "=", "installed"),
]) > 0
for rec in self:
rec.fleetflow_busenco_installed = installed