-
- Downloads
[FIX] crm,gamification: flexible reference to field
The field generation is most of the time following the pattern `field_<table name>_<field name>` but in case of name clash (e.g. res.partner.category - id and res.partner - category_id), the id of ir.model.field is added at the end of the external id during the field creation. The more flexible way to link to an ir.model.field is to use the syntax `search=[('model', '=', <model>), ('name', '=', <field name>)]` to avoid errors as in #12192 when the "first" external id no longer exists. Fixes #12192 Closes #12198
Loading
Please register or sign in to comment