project
project copied to clipboard
[17.0][FIX] project_task_add_very_high: move priority field outside title in sharing project task view form
Before this commit, the priority field was misplaced in the project's sharing project task view form (portal users editable task view).
After this commit, the exact solution as used in the webclient's project task view form is used for the editable portal view. This solves the misplacement of the field.
Hi @astirpe, some modules you are maintaining are being modified, check this out!
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
Hi @pedrobaeza, this PR recreates the same behavior in the portal view as the form in the webclient for logged in project users. Which, if I am not mistaken, is currently also not following Odoo's core in-line behavior.
Do you suggest both forms should follow the Odoo core's behavior?
Well, at least the backend form view. Adding 2 stars shouldn't take one vertical line more, making the ergonomics worst.
All right. I agree with you that it should be in-line.
However testing this bug in v18, it seems the misalignment is no longer present there and debugging why this is happening in v17, is going to be a lot of work (probably an odoo client thing).
Therefore my suggestion would be to implement this fix for v17, so that the portal and back-end views replicate the same implementation and behaviours. Then for the migration to v18, both views adjustments should be removed, so that the priority field is in-line for the back-end and portal view.
v18:
Removing the view adjustments (x2) for v18:
<xpath expr="//div[hasclass('oe_title')]" position="before">
<field name="priority" position="move" />
</xpath>
To make sure we're on the same page, this is the current v17 behaviour
Back-end form
Portal share view
I don't see this patch brings any enhancement. At the end, we have the same 2 lines before and after. I think a simple CSS override may fix it.
@pilarvargas-tecnativa can you try a bit to fix the situation?
@pilarvargas-tecnativa can you try a bit to fix the situation?
Ok I'll take a look
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. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
Any news @pilarvargas-tecnativa ?
No need to modify templates. Just add this css with a note to remove in v18
.o_field_widget.o_priority, .o_field_widget .o_priority {
white-space: nowrap;
}
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. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.