Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

Context (anonymized):

# removed from code class XChild(models.Model): _name = 'x.child' parent_id = fields.Many2one('res.partner') class ResPartner(models.Model): _inherit = 'res.partner' child_ids = fields.One2many('x.child', 'parent_id')

I removed the model x.child and the field res.partner.child_ids from the code. I don’t need the old data.

Error: On server start or opening Contacts → KeyError: 'child_ids'.

Tried:

  • Deleted metadata: ir.model.fields(name='child_ids')
  • Removed view refs: ir.ui.view (arch_db ilike 'child_ids')
  • Dropped child table x_child
  • Removed actions/filters/rules/templates where domains/contexts/body mention child_ids
  • Removed ir.model.access/ir.rule for x.child


What’s the complete cleanup order to remove all references and fix the KeyError without uninstalling the module in Odoo 11?

Which places are commonly missed besides views—e.g., ir.actions.act_window (domain/context), ir.filters, ir.rule (domain_force), ir.actions.server, base.automation, mail.template, ir.translation, ir.model.data xml_ids for ir.model/ir.model.fields?

Any Odoo 11 gotchas (e.g., ir.cron has no args field) to avoid invalid-field errors while searching?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 25
350
2
mei 25
2192
0
mrt. 15
3612
0
jul. 22
2610
2
jun. 22
3573