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
[FIX] bad states in decoration-info of purchase.order tree view #70158
Conversation
Okay, can you please rewrite the commut message following the guidelines https://www.odoo.com/documentation/14.0/reference/guidelines.html#git |
Hi @amoyaux. Thanks for your review and your answer.
Let me know if it's OK. One question : The bug is present since many versions. (present at least in V12). What is the best for odoo team ? do a PR against 12.0 branch ? master branch ? all the branches ? I don't understand how robodoo works, to find the branches into merge the PR. kind regards. |
@legalsylvain Don't worry for the references, not needed in your case. For your question, it depends, when you create a PR for a specific version, we have an automated tools call forward-port bot that will try apply the fix for all the version between the PR branch up to master. https://github.com/odoo/odoo/wiki/Mergebot#forward-port For example if you do a PR in 12.0, the bot will create a PR for branch: Usually, we prefer that people propose the fix on the version they need it rather than bellow because we are never safe from a bug and if other people need it, they can always suggest a back port. |
@legalsylvain What do you think of moving it on the name instead of the complete line. It's a big less aggressive. |
Hi @amoyaux. I'm currently working on 12.0 and proposed that PR only to avoid to have a new patch, after the next migration ;-)
At the moment, I don't see your proposal consistent with the current Don't you think ? |
Hello, Since the PR is for master and the decoration exists for one field instead of the line, I would use it. Maybe it's not consistent with cancel but decoration-muted is less visible and often filter out of views by default. |
584344a
to
d1a837f
Compare
- set correct decoration-info attribute on purchase.order tree view, replacing unexisting states ('wait','confirmed') by existing ones ('draft','sent') - Move the decoration-info from tree line to name field to comply with the new display standards
Hello @amoyaux.
Thanks for your answer. I so moved the Let me know. thanks. |
@legalsylvain Yep, good that way. Thanks for the contribution. robodoo r+ |
- set correct decoration-info attribute on purchase.order tree view, replacing unexisting states ('wait','confirmed') by existing ones ('draft','sent') - Move the decoration-info from tree line to name field to comply with the new display standards closes #70158 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Trivial patch.
Set correct
decoration-info
attribute onpurchase.order
tree view, replacing unexisting states('wait','confirmed')
by existing ones('draft','sent')
See list of valid states : https://github.com/odoo/odoo/blob/master/addons/purchase/models/purchase.py#L97
Note : this bug is present since at least V12.0
CC : @Yenthe666, @quentinDupont
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr