Make module installable on stock Odoo 18 (verified via test DB install)
Caught and fixed by running an actual install on a throwaway DB:
- Strip 29 # comment lines from ir.model.access.csv (Odoo CSV loader treats
them as malformed rows → IndexError); 79 data rows preserved
- Remove obsolete ir.cron.numbercall field (removed in Odoo 17+) from 4 cron
records in fl_deadline_rules.xml
- Rename <tree>→<list> across 26 sites; inside x2many inline views Odoo 18 no
longer recognizes <tree>, which made it fall back to the outer model and
reject inner fields ("Field 'partner_id' does not exist in model 'fl.case'")
- Add store=True to non-stored computed fields referenced by search filters,
which Odoo 18 now rejects as unsearchable:
- fl.case: overdue_deadline_count, next_deadline_label
- fl.deposition: notice_valid
Module loads cleanly: 31 fl.* models registered, no errors.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -353,11 +353,11 @@ class FlCase(models.Model):
|
||||
)
|
||||
next_deadline_label = fields.Char(
|
||||
string='Next Deadline Description',
|
||||
compute='_compute_next_deadline'
|
||||
compute='_compute_next_deadline', store=True
|
||||
)
|
||||
overdue_deadline_count = fields.Integer(
|
||||
string='Overdue Deadlines',
|
||||
compute='_compute_next_deadline'
|
||||
compute='_compute_next_deadline', store=True
|
||||
)
|
||||
|
||||
# ══════════════════════════════════════════════════════════════════════
|
||||
|
||||
@@ -49,7 +49,7 @@ class FlDeposition(models.Model):
|
||||
)
|
||||
notice_valid = fields.Boolean(
|
||||
string='Notice Valid (≥10 days)',
|
||||
compute='_compute_notice_info',
|
||||
compute='_compute_notice_info', store=True,
|
||||
help='FL 1.310(b): At least 10 days notice required'
|
||||
)
|
||||
notice_warning = fields.Char(
|
||||
|
||||
Reference in New Issue
Block a user