New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] Change display of m2o link #1041
Conversation
Hey @apollet, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
ping @gurneyalex |
@pedro you have the same issue on v10 branch https://travis-ci.org/OCA/web/jobs/422002544 on web_widget_slick but you're right it's broken in runbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this change. With the suggestions of @pedrobaeza it will be even better. For the icon I guess https://fontawesome.com/icons/edit?style=regular is a little better (if it opens in the same target).
Can you update the README and up the version in the manifest, please?
I couldn't test the functionality in Runbot.
@apollet could you have a look on this bug. You can test in sale.order for example. Thanks |
The suggestions of @pedrobaeza are waaay too hard to do for me :) and i think it's not the original purpose of this module. For the bug on sale order I think it's not part of my few changes....the OCA/web last build throw the same error... |
Thanks a lot @apollet. Nice improvement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it on runbot. When I activate the widget I get this error:
TypeError: src.replace is not a function
Please report this to https://github.com/chjj/marked.
at Lexer.lex (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:10926:146)
at Function.Lexer.lex (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:10926:93)
at marked (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:11047:72)
at Class._format (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:11123:802)
at Class.format (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:2110:12)
at Class.render_cell (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:2075:15)
at Object.render_cell (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/535-1462354/web.assets_backend.js:2075:237)
at eval (eval at _render (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/400-57aa053/web.assets_common.js:2950:73), <anonymous>:65:30)
at Object.foreach (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/400-57aa053/web.assets_common.js:2920:18)
at Engine.eval (eval at _render (http://3339022-1041-272f7f.runbot1.odoo-community.org/web/content/400-57aa053/web.assets_common.js:2950:73), <anonymous>:45:23)
I tried the module from there Branch v10 is red without this update
|
It's now works ! ping @tarteo |
@bealdav I still get the error. |
@tarteo |
For me the icon is still not good, as current one is indicating the edition of the record, while it should go to the record, but on read mode. A better icon is IMO https://fontawesome.com/icons/angle-double-right?style=solid If you change it, I'll try the PR outside runbot and push this PR for being merged and forward-ported. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@apollet could you close please ? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Change display of m2o link in order to not have a full clickable link but just an icon next to it.
The icon shows up only when cursor is on the value.
It prevents from opening the many2one form by accident.