[17.0, 16.0] formio.form model: Many2oneReference (res_model, res_id) to replace specialized model FK #212
Labels
16.0
17.0
enhancement
New feature or request
formio_crm (module)
formio (module)
formio_partner (module)
formio_purchase (module)
formio_sale (module)
SYNOPSIS
To improve (and ease) the generic integration of forms, it's maybe possible to replace this by the generic
Many2oneReference
field.(Possible v16.0 work).
Research and refactor
formio.form
model resource implementation to use theMany2oneReferene
pseudo field.This concerns the already present fields
res_model
,res_id
etc (otherres_
fields).This results into 2 fields in the
formio_form
table, eg:Docs (ORM API, reference)
See: https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#odoo.fields.Many2oneReference
Examples of implementation:
mail.activity
,mail.followers
,mail.message
.REQUIREMENTS
So this thoroughly requires:
formio_crm
)WARNINGS (to test):
formio_crm
) the FK in theformio.form
model is the specialized one (eg.crm_lead_id
). See also above regarding "refactoring old-style" and "migration script".crm_lead_views.xml
): Action buttonformio.action_formio_form
context (fields).The text was updated successfully, but these errors were encountered: