Skip to content
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

[16.0] [ADD] mrp_order_report_lot #137

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

ivantodorovich
Copy link

@ivantodorovich ivantodorovich commented Feb 13, 2025

Splits components by lots like this:

Component Serial Number / Lot Consumed
Product A (no tracking)   10
Product B (lot tracking) Lot1
Lot2
Lot missing
10
5
2
Product C (Serial number) SN01
SN02
SN03
3

@ivantodorovich ivantodorovich force-pushed the 16.0-add-mrp_order_report_lot branch 3 times, most recently from 47ebf9f to 2daf109 Compare February 13, 2025 19:32
@ivantodorovich ivantodorovich marked this pull request as ready for review February 13, 2025 19:37
Copy link

@vvrossem vvrossem left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution

>
<attribute
name="t-if"
t-translation="off"

Choose a reason for hiding this comment

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

TIL t-translation 💡

Odoo automatically exports translatable strings from “data”-type content:

  • (...)
  • QWeb templates (both server-side and client-side), all text nodes are exported except inside t-translation="off" blocks, the content of the title, alt, label and placeholder attributes are also exported
  • (...)

https://www.odoo.com/documentation/16.0/developer/howtos/translations.html#implicit-exports

Comment on lines +38 to +42
<t t-if="raw_line.product_id.tracking == 'lot'">
<div t-if="False in quantity_by_lot">
<span class="fst-italic"><t>Lot missing</t></span>
</div>
</t>

Choose a reason for hiding this comment

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

very nice enhancement, thanks

Copy link

@yankinmax yankinmax left a comment

Choose a reason for hiding this comment

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

Useful module, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants