[18.0][IMP] sale_product_pack: improve ergonomy for the user experience#241
[18.0][IMP] sale_product_pack: improve ergonomy for the user experience#241StephaneMangin wants to merge 1 commit intoOCA:18.0from
Conversation
|
Hi @victoralmau, |
c082c70 to
7c5e6c1
Compare
7c5e6c1 to
cbcce2c
Compare
cbcce2c to
4bd4e75
Compare
yvaucher
left a comment
There was a problem hiding this comment.
Code LGTM, only the error message that has an error.
Yes, i'm on it. Sale order copy must be adapted (removing children lines from the copy data for instance) |
|
Please check the unit tests which are failing on: TestSaleOrder.test_unlink_multiple_packs and TestSaleOrder.test_unlink_pack_line Where the exception is raised when it's not expected. |
aa7aabf to
7038e9d
Compare
All good now. Refactoring the unlink process and the order liens copy (adding a context option to bypass children unlink contrains) |
b97f94d to
a3100ee
Compare
a680508 to
69e8c78
Compare
- Convert the component lines unlink exception in JS - Also remove component lines in JS when a product pack is removed
69e8c78 to
ef3e891
Compare
Ergonomy is a bit confusing for the customer as constrains on changes and especially unlink are based only on onchange mechanism (which doesn't properly update the view to reflect the final result)
So the solution to allow a better readability of what the customer is doing is to:
Also add some new tests for component lines forbidden changes