-
Notifications
You must be signed in to change notification settings - Fork 30k
[IMP] hr_contract, hr_work_entry: improve ux for contract and work entry #194330
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] hr_contract, hr_work_entry: improve ux for contract and work entry #194330
Conversation
0cdd086
to
2929461
Compare
widget="state_selection" readonly="0"/> | ||
</h1> | ||
<h2> | ||
<h2 class="d-none"> |
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.
Isn't invisible="1" working here?
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.
We can't use invisible because it removes the entire <h2>
tag from the HTML structure, causing some tours and test cases to fail when searching for it. Instead, using d-none will hide it from the UI while keeping it in the structure, ensuring that the tours and tests still pass.
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.
And couldn't we adapt the tour instead ?
bc40377
to
fb6e214
Compare
1ed6319
to
e2d0a00
Compare
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.
Hello thanks for your work first round of review
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.
seems like a really bad way to do this hardcoding stuff especially position of the the template layering is not the way to go it's basically killing a fly with a bazooka
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 think that you can just move the ribbon position in the template
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.
what is the point of having a non empty header that cannot ever be visible?
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.
what's the point of a none display unempty stuff ?
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.
We need to use d-none because it prevents extra space from appearing between the name
and employee_id
fields in contract form view. Using invisible causes some tours and test cases to fail when searching for the field. Instead, d-none hides it from the UI while keeping it in the structure, ensuring that the tours and tests continue to pass.
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.
120c max
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.
120c max
3e87649
to
928a65e
Compare
928a65e
to
7d7bdb5
Compare
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.
Small review.
Thanks for your work.
widget="state_selection" readonly="0"/> | ||
</h1> | ||
<h2> | ||
<h2 class="d-none"> |
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.
And couldn't we adapt the tour instead ?
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.
invisible="contracts_count < 2" | |
invisible="contracts_count <= 1" |
11f9fa6
to
d430b25
Compare
This PR improves the ux and functionality for both the contract and work entry form views. task-4334973
d430b25
to
d67c0d6
Compare
@robodoo r+ |
This PR improves the ux and functionality for both the contract and work entry form views. task-4334973 closes #194330 Related: odoo/enterprise#77409 Related: odoo/upgrade#7089 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This PR improves the ux and functionality for both the contract and work entry form views.
task-4334973