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

[17.0][MIG] stock_picking_report_valued: Migration to 17.0 #300

Merged

Conversation

nguyenminhchien
Copy link

Ref: BSRD-711

I improve this module a bit to make it works with the column of HS Code (after installing the module stock_delivery).
It means that we don't need to migrate the module stock_picking_report_valued_delivery in version 17.0 anymore.

Result:

  • Report has both Lot Number and HS Code
    lot_and_hscode

  • Report has Lot Number but not HS Code
    lot-no-hscode

  • Report has HS Code but not Lot Number
    hscode-no-lot-

  • Report has no Lot Number nor HS Code
    no-lot-no-hscode

Luis M. Ontalba and others added 30 commits January 11, 2024 15:53
For avoiding problems if you don't have access to sales orders (stricter
warehouse users, inter-company records...).
In certain conditions of the DB (i.e. integration tests), previous code doesn't assure
the price is going to be 100.
[FIX] stock_picking_report_valued: Wrong taxes amount if round globally (OCA#56)

[FIX] stock_picking_report_valued: Remove round_method condition because don't apply here

[FIX] stock_picking_report_valued: price_reduce is stored with product decimal precision

[FIX] stock_picking_report_valued: division_by_zero when unrelated sale order

[FIX] stock_picking_report_valued: Improve code

[FIX] stock_picking_report_valued: Multiple taxes in sale line (WIP)
Currently translated at 76.9% (20 of 26 strings)

Translation: stock-logistics-reporting-14.0/stock-logistics-reporting-14.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_picking_report_valued/fr_FR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-reporting-15.0/stock-logistics-reporting-15.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-15-0/stock-logistics-reporting-15-0-stock_picking_report_valued/
The fix in fac3997 didn't consider
move lines without a linked sale line. That would end up in inconsistent
calculations and even the original line rewriting.

TT38863
- In standard report, Odoo always show qty_done
pedrocs-exo and others added 12 commits January 11, 2024 15:53
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/pt/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/fr/
Currently translated at 73.9% (17 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/fr_FR/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/fr/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/es/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/es/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/it/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/it/
Currently translated at 100.0% (23 of 23 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_picking_report_valued
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued/it/
@nguyenminhchien nguyenminhchien marked this pull request as ready for review January 17, 2024 02:56
<t t-if="o.valued and o.sale_id and o.move_line_ids and is_outgoing">
<t t-if="o.state != 'done'">
<th class="text-end"><strong>Qty Reserved</strong></th>
</t>
Copy link
Author

Choose a reason for hiding this comment

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

i removed this because the table stock_move_line_table was only shown when o.state == done.

<td class="text-center">
<span t-field="move_line.qty_done" />
<span t-field="move_line.product_uom_id" /></td>
</t>
Copy link
Author

Choose a reason for hiding this comment

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

Because the new columns are added to the table stock_move_line_table which shown when o.state = done, so, we don't need these lines of code.

@gurneyalex
Copy link
Member

/ocabot migration stock_picking_report_valued

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jan 25, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 25, 2024
10 tasks
@gurneyalex
Copy link
Member

@nguyenminhchien can you add a note in the README file mentioning that this module includes the features from stock_picking_report_valued_delivery (maybe in a Changelog section)

@nguyenminhchien nguyenminhchien force-pushed the 17.0-mig-stock_picking_report_valued branch from bcc061b to df92eee Compare January 29, 2024 03:08
@nguyenminhchien
Copy link
Author

@nguyenminhchien can you add a note in the README file mentioning that this module includes the features from stock_picking_report_valued_delivery (maybe in a Changelog section)

Added.

@gurneyalex
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-300-by-gurneyalex-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9d9020d into OCA:17.0 Feb 2, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at fc25225. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.