odoo/odoo#225326
Created by Neel Ajitbhai Shah (nees)
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-placeholder-private-label-nees
- head
- 9ed5be351ee16a8685a46b2ae341a70897b6191a
- merged
- 1 week ago by Discuss, Sébastien Theys (seb)
| odoo/odoo | odoo/documentation | |
|---|---|---|
| master | #225326 | #14601 |
[IMP] mail: show private placeholder for empty group_ids using falsy_value_label
Description of the issue this PR addresses:
Previously, when the group_ids field was left empty on canned responses,
there was no indication that the response was private.
Desired behaviour after PR is merged:
- Uses the python field attribute falsy_value_label to provide a meaningful,
translatable label for the falsy state of relational fields.
- Adds a lightweight UI widget that:
- Displays the field’s falsy_value_label 🔒 Private when the field is
read-only and not set.
- Falls back to the standard many2many_tags behavior when the field has values
or is editable.
- The widget is applied to group_ids on mail.canned.response, ensuring a
consistent label across list, form, and kanban views.
Related Documentation PR: odoo/documentation#14601
Before / After:
<img width="150" height="48" alt="image" src="https://github.com/user-attachments/assets/59d9fff8-fd9c-4359-ab28-91ad6463d3d6" /> <img width="158" height="40" alt="image" src="https://github.com/user-attachments/assets/bfc768ef-a7d6-4da0-8537-b9d2d6825bcb" />
task-5071026
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr