Split 49 modules/suites into independent git repos; untrack from monorepo
Each top-level module/suite folder is now its own private repo on GitHub (gsinghpal/<name>) and gitea (admin/<name>), with a fresh single initial commit. The monorepo no longer tracks them (added to .gitignore + git rm --cached); working-tree files are retained on disk and managed in their own repos. The monorepo keeps shared root files (CLAUDE.md, docs/, scripts/, tools/, AGENTS.md, WIP/obsolete dirs) and full history. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2026 Nexa Systems Inc.
|
||||
# License OPL-1 (Odoo Proprietary License v1.0)
|
||||
# Part of the Fusion Plating product family.
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
"""Extend res.company with a link to the current CGP registration."""
|
||||
_inherit = 'res.company'
|
||||
|
||||
x_fc_cgp_registration_id = fields.Many2one(
|
||||
'fusion.plating.cgp.registration',
|
||||
string='CGP Registration',
|
||||
domain="[('company_id', '=', id)]",
|
||||
help='Currently active Controlled Goods Program registration '
|
||||
'for this company.',
|
||||
)
|
||||
x_fc_cgp_registered = fields.Boolean(
|
||||
string='CGP Registered',
|
||||
compute='_compute_x_fc_cgp_registered',
|
||||
store=False,
|
||||
)
|
||||
|
||||
@api.depends(
|
||||
'x_fc_cgp_registration_id',
|
||||
'x_fc_cgp_registration_id.state',
|
||||
)
|
||||
def _compute_x_fc_cgp_registered(self):
|
||||
for rec in self:
|
||||
reg = rec.x_fc_cgp_registration_id
|
||||
rec.x_fc_cgp_registered = bool(
|
||||
reg and reg.state == 'registered'
|
||||
)
|
||||
Reference in New Issue
Block a user