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,33 +0,0 @@
|
||||
"""Reverse linkage from account.move back to source documents."""
|
||||
|
||||
from odoo import _, fields, models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
source_document_ids = fields.One2many(
|
||||
'documents.document',
|
||||
'move_id',
|
||||
string='Source Documents',
|
||||
readonly=True,
|
||||
help="Documents in the Documents app that were used to create this move.",
|
||||
)
|
||||
source_document_count = fields.Integer(
|
||||
string='Source Document Count',
|
||||
compute='_compute_source_document_count',
|
||||
)
|
||||
|
||||
def _compute_source_document_count(self):
|
||||
for m in self:
|
||||
m.source_document_count = len(m.source_document_ids)
|
||||
|
||||
def action_open_source_documents(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': _('Source Documents'),
|
||||
'res_model': 'documents.document',
|
||||
'view_mode': 'kanban,list',
|
||||
'domain': [('move_id', '=', self.id)],
|
||||
}
|
||||
Reference in New Issue
Block a user