Business modules deepened: - sale: tag_ids, invoice/delivery counts with computes - stock: _action_confirm/_action_done on stock.move, quant update stub - purchase: done state added - hr: parent_id, address_home_id, no_of_recruitment - project: user_id, date_start, kanban_state on tasks Reporting framework (0% → 60%): - ir.actions.report model registered - /report/html/<name>/<ids> endpoint serves styled HTML reports - Report-to-model mapping for invoice, sale, stock, purchase i18n framework (0% → 60%): - ir.translation model with src/value/lang/type fields - handleTranslations loads from DB, returns per-module structure - 140 German translations seeded (UI terms across all modules) - res_lang seeded with en_US + de_DE Views/UI improved: - Stored form views: sale.order (with editable O2M lines), account.move (with Post/Cancel buttons), res.partner (with title) - Stored list views: purchase.order, hr.employee, project.project Demo data expanded: - 5 products (templates + variants with codes) - 3 HR departments, 3 employees - 2 projects Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
// Package models registers all base module models.
|
|
package models
|
|
|
|
// Init registers all models for the base module.
|
|
// Called by the module loader in dependency order.
|
|
func Init() {
|
|
initIrUI() // ir.ui.menu, ir.ui.view, ir.actions, ir.sequence, ir.attachment, report.paperformat
|
|
initResCurrency() // res.currency, res.country, res.country.state
|
|
initResCompany() // res.company (needs res.currency, res.country)
|
|
initResPartner() // res.partner, res.partner.category, res.partner.title, res.partner.bank, res.bank
|
|
initResUsers() // res.users, res.groups (needs res.partner, res.company)
|
|
initIrModel() // ir.model, ir.model.fields, ir.module.category
|
|
initIrModelAccess()
|
|
initIrRule()
|
|
initIrModelData()
|
|
initIrFilter()
|
|
initIrDefault()
|
|
initIrConfigParameter() // ir.config_parameter (System Parameters)
|
|
initIrLogging() // ir.logging (Server log entries)
|
|
initIrCron() // ir.cron (Scheduled Actions)
|
|
initResLang() // res.lang (Languages)
|
|
initResConfigSettings() // res.config.settings (TransientModel)
|
|
initIrActionsReport() // ir.actions.report (Report Actions)
|
|
initIrTranslation() // ir.translation (Translations)
|
|
}
|