project icon indicating copy to clipboard operation
project copied to clipboard

[17.0][FIX] project_task_add_very_high: move priority field outside title in sharing project task view form

Open sanderlienaerts opened this issue 1 year ago • 11 comments

Before this commit, the priority field was misplaced in the project's sharing project task view form (portal users editable task view). Screenshot 2024-11-29 at 11 17 00

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. Screenshot 2024-11-29 at 11 11 36

sanderlienaerts avatar Nov 29 '24 10:11 sanderlienaerts

Hi @astirpe, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Nov 29 '24 10:11 OCA-git-bot

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). 🤖

OCA-git-bot avatar Dec 16 '24 21:12 OCA-git-bot

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?

sanderlienaerts avatar Dec 17 '24 21:12 sanderlienaerts

Well, at least the backend form view. Adding 2 stars shouldn't take one vertical line more, making the ergonomics worst.

pedrobaeza avatar Dec 18 '24 08:12 pedrobaeza

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: Screenshot 2024-12-19 at 12 30 17

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

Screenshot 2024-12-19 at 12 38 46

Portal share view

Screenshot 2024-12-19 at 12 39 22

sanderlienaerts avatar Dec 19 '24 11:12 sanderlienaerts

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.

pedrobaeza avatar Dec 19 '24 11:12 pedrobaeza

@pilarvargas-tecnativa can you try a bit to fix the situation?

pedrobaeza avatar Dec 19 '24 11:12 pedrobaeza

@pilarvargas-tecnativa can you try a bit to fix the situation?

Ok I'll take a look

pilarvargas-tecnativa avatar Dec 19 '24 12:12 pilarvargas-tecnativa

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.

github-actions[bot] avatar Apr 20 '25 12:04 github-actions[bot]

Any news @pilarvargas-tecnativa ?

sanderlienaerts avatar Apr 25 '25 06:04 sanderlienaerts

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;
}

image

pilarvargas-tecnativa avatar Apr 25 '25 13:04 pilarvargas-tecnativa

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.

github-actions[bot] avatar Aug 31 '25 12:08 github-actions[bot]