콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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?

아바타
취소
관련 게시물 답글 화면 활동
2
8월 25
343
2
5월 25
2184
0
3월 15
3608
0
7월 22
2598
2
6월 22
3571