[IMP] sale_stock, web: update return order dialog design#4951
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:master-website_sale-add-return-flow-kcv, it needs to be retargeted before it can be merged. |
c61634f to
84690e7
Compare
9e5789a to
b0f315e
Compare
8842a04 to
42a2c93
Compare
42a2c93 to
2ba3206
Compare
110b340 to
fcdd85e
Compare
2ba3206 to
662380e
Compare
anso-odoo
left a comment
There was a problem hiding this comment.
Hello @ldau-odoo, a small first review
Thanks!
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
| t-out="formatCurrency( | ||
| line.price, line.currency | ||
| )" | ||
| class="return_order_dialog_price h6 d-block mb-0 mb-sm-2 text-nowrap fw-bold text-end" |
There was a problem hiding this comment.
Why not use straight <h6> tag instead of a <span> ?
There was a problem hiding this comment.
I kept the span because it’s not semantically a title—we just wanted the h6 style.
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.js
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.js
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
f460a4b to
f2489d3
Compare
anso-odoo
left a comment
There was a problem hiding this comment.
Nice @ldau-odoo !
I still have some guidelines and wording suggestions, can you check ?
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.xml
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.scss
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.scss
Outdated
Show resolved
Hide resolved
addons/sale_stock/static/src/return_order_dialog/return_order_dialog.scss
Outdated
Show resolved
Hide resolved
f2489d3 to
3573986
Compare
| <div t-if="line.delivery_name"> | ||
| Delivery: <t t-out="line.delivery_name"/> | ||
| <div t-if="line.delivery_name" class="small"> | ||
| Delivery: <strong class="text-muted"><t t-out="line.delivery_name" /></strong> |
There was a problem hiding this comment.
Not sure text-muted is necessary since it's the important information
| > | ||
| Continue | ||
| </button> | ||
| <span t-if="noProductAndNoReason" class="ms-2 text-muted small">Select at least one product and a return reason.</span> |
There was a problem hiding this comment.
| <span t-if="noProductAndNoReason" class="ms-2 text-muted small">Select at least one product and a return reason.</span> | |
| <small t-if="noProductAndNoReason" class="ms-2 text-muted">Select at least one product and a return reason.</span> |
This commit improves the design of the return order dialog by making it more consistent with the product configuration dialog. It also introduces a new prop for the confirmation dialog to change its size, as the "sm" size may be too small for some use cases. task-5477354
3573986 to
bc9b9f8
Compare
|
This PR targets the un-managed branch odoo-dev/odoo:master-website_sale-add-return-flow-kcv, it needs to be retargeted before it can be merged. |
This PR improves the design of the return order dialog by making
it more consistent with the product configuration dialog.
It also introduces a new prop for the confirmation dialog to change
its size, as the "sm" size may be too small for some use cases.
task-5477354