Split 49 modules/suites into independent git repos; untrack from monorepo
Some checks failed
fusion_accounting CI / test (fusion_accounting_ai) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_core) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_migration) (push) Has been cancelled

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:
gsinghpal
2026-06-07 01:54:34 -04:00
parent 2a7b315e98
commit a66cdefc01
6740 changed files with 51 additions and 1277207 deletions

View File

@@ -1,28 +0,0 @@
import logging
from odoo import models, fields
_logger = logging.getLogger(__name__)
class AccountMove(models.Model):
_inherit = 'account.move'
woo_order_id = fields.Many2one('woo.order', string='WooCommerce Order')
is_woo_invoice = fields.Boolean(compute='_compute_is_woo_invoice', string='Is WC Invoice')
def _compute_is_woo_invoice(self):
for move in self:
move.is_woo_invoice = bool(move.woo_order_id)
def action_post(self):
"""Override to auto-push invoice PDF to WooCommerce on posting."""
res = super().action_post()
for move in self:
if move.woo_order_id and not move.woo_order_id.invoice_synced:
try:
move.woo_order_id.action_push_invoice_pdf()
move.woo_order_id.invoice_synced = True
except Exception as e:
_logger.error("Failed to push invoice PDF to WC: %s", e)
return res