[13.0][IMP]bi_sql_editor: many2one fields clickable on the list view if setting is enabled - #892
Conversation
|
@legalsylvain perhaps you can give me some feedback on this one as well 🙂 |
021ec77 to
53d0a05
Compare
BernatPForgeFlow
left a comment
There was a problem hiding this comment.
Functional test on Guillem's computer 💻 🙂
|
@legalsylvain it would be nice to also get your input on this feature whenever you can 🙂 |
|
Hi thanks for the ping ! In fact, I don't understand what is widget="many2one". I rgrepped Odoo, and there is only a fiew occurences in the whole project. Coud you elaborate what is changing ? |
Sure, it is actually a widget added in odoo's core. See here: https://github.com/odoo/odoo/blob/13.0/addons/web/static/src/js/fields/relational_fields.js#L96 and here https://github.com/odoo/odoo/blob/13.0/addons/web/static/src/js/fields/field_registry.js#L72. It's not widely used, but it gives the possibility for Many2one records to be clickable so you can access the specific record. |
legalsylvain
left a comment
There was a problem hiding this comment.
Well, I just tested on runboat :
checkbox disabled :
checkbox enabled :
(Add possibility to click on the company to enter in the company form).
Well, I'm not very in favor of adding another extra setting (extra column in the configuration of the view of bi.sql.view.field model).
Why not just install the OCA/web module web_tree_many2one_clickable
(https://github.com/OCA/web/tree/16.0/web_tree_many2one_clickable)
What do you think ?
thanks !
Understandable, I agree we can still use the https://github.com/OCA/web/tree/16.0/web_tree_many2one_clickable module if needed. We can close it 👍🏿 |




cc @ForgeFlow