[IMP] survey_record_generation : allow readonly fields for record creation #13

Merged
mondot merged 1 commits from survey_record_generation-allow-readonly-fields-for-creation into 16.0 2025-12-02 15:02:05 +00:00
Owner

cf https://elabore.coop/web#id=5634&cids=1&menu_id=198&action=1420&active_id=5337&model=project.task&view_type=form

We don't understand why there is this condition on readonly for the field_id of SurveyRecordCreationFieldValues.
Indeed, we can read from the documentation that readonly has only an impact on the UI :

readonly (bool) –
whether the field is readonly (default: False)
This only has an impact on the UI. Any field assignation in code will work (if the field is a stored field or an inversable one).

Thus, we remove it to make readonly fields available (they are required in some models).

cf https://elabore.coop/web#id=5634&cids=1&menu_id=198&action=1420&active_id=5337&model=project.task&view_type=form We don't understand why there is this condition on `readonly` for the `field_id` of SurveyRecordCreationFieldValues. Indeed, we can read from [the documentation](https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#fields) that readonly **has only an impact on the UI** : ``` readonly (bool) – whether the field is readonly (default: False) This only has an impact on the UI. Any field assignation in code will work (if the field is a stored field or an inversable one). ``` Thus, we remove it to make readonly fields available (they are required in some models).
mondot added 1 commit 2025-11-20 16:47:01 +00:00
[IMP] survey_record_generation : allow readonly fields for record creation
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m34s
79bd35c563
mondot self-assigned this 2025-12-01 15:59:22 +00:00
mondot merged commit af07cad3f6 into 16.0 2025-12-02 15:02:05 +00:00
mondot deleted branch survey_record_generation-allow-readonly-fields-for-creation 2025-12-02 15:02:05 +00:00

LGFM

LGFM
Sign in to join this conversation.
No description provided.