Skip to content

[16.0][IMP] shopfloor_reception_mobile: display qty_done over total qty in select_move.#1127

Open
nicolas-delbovier-acsone wants to merge 4 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor_reception_mobile-select_move-show-qty-done-over-total-qty
Open

[16.0][IMP] shopfloor_reception_mobile: display qty_done over total qty in select_move.#1127
nicolas-delbovier-acsone wants to merge 4 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor_reception_mobile-select_move-show-qty-done-over-total-qty

Conversation

@nicolas-delbovier-acsone
Copy link
Copy Markdown

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Jan 28, 2026

image

@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@nicolas-delbovier-acsone nicolas-delbovier-acsone changed the title [IMP] shopfloor_reception_mobile: display qty_done over total qty in select_move. [16.0][IMP] shopfloor_reception_mobile: display qty_done over total qty in select_move. Jan 28, 2026
Comment on lines +384 to +386
renderer: function (rec, field) {
return rec.quantity_done + " / " + rec.quantity;
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, it should display the quantity by packaging

Suggested change
renderer: function (rec, field) {
return rec.quantity_done + " / " + rec.quantity;
},
render_component: "packaging-qty-picker-display",
render_props: function (record) {
return self.utils.wms.move_line_qty_picker_props(record, {
qtyInit: record.quantity_done,
# qtyTodo: record.quantity,
});
},

And then the component could be improved to support a qtyTodo to render it the same way

Examples:

  • 0 / 1000 (1 PAL, 3 TU)
  • 200 (2 TU) / 1000 (1 PAL, 3 TU)

…select_move.

This commit changes the rendering of the "Qty done" field on the move card in "select_move" state like so:
"Qty done: 7" -> "Qty done: 7/10"
This commit also simplifies the code a bit by moving the string construction from the Vue template to JS method.
@nicolas-delbovier-acsone nicolas-delbovier-acsone force-pushed the 16.0-imp-shopfloor_reception_mobile-select_move-show-qty-done-over-total-qty branch from 8b1dd19 to 40a5afa Compare May 7, 2026 10:45
@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor_reception_mobile Module shopfloor_reception_mobile mod:shopfloor_mobile Module shopfloor_mobile labels May 7, 2026
@nicolas-delbovier-acsone
Copy link
Copy Markdown
Author

@jbaudoux, Here is the new UI with your suggested implementation:

image

I am not sure if I like that... It is a bit cluttered isn't it?

@nicolas-delbovier-acsone
Copy link
Copy Markdown
Author

nicolas-delbovier-acsone commented May 7, 2026

Also, I needed to make a [FIX] commit because of this change in another scenario:

With FIX (same as before this PR) Without FIX
image image

This is because the code was passing qtyTodo by default to the "packaging-qty-picker-display" component which was ignored until now since it did not exist as a prop before (it only existed on the "packaging-qty-picker" component beforehand).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_mobile Module shopfloor_mobile mod:shopfloor_reception_mobile Module shopfloor_reception_mobile series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants