Skip to content

[19.0][MIG] purchase_order_report_hide_tax: Migration to 19.0#96

Merged
OCA-git-bot merged 6 commits into
OCA:19.0from
moduon:19.0-mig-purchase_order_report_hide_tax
May 26, 2026
Merged

[19.0][MIG] purchase_order_report_hide_tax: Migration to 19.0#96
OCA-git-bot merged 6 commits into
OCA:19.0from
moduon:19.0-mig-purchase_order_report_hide_tax

Conversation

@chienandalu

@chienandalu chienandalu commented May 13, 2026

Copy link
Copy Markdown
Member
image

cc @moduon MT-14451

please review @Gelojr @EmilioPascual

@OCA-git-bot OCA-git-bot added mod:purchase_order_report_hide_tax Module purchase_order_report_hide_tax series:19.0 labels May 13, 2026

@fcvalgar fcvalgar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work on this migration @chienandalu . The module is simple, useful, and behaves as expected.

I have performed the following functional tests:
Test 1: OK - The “Show Tax Column in Purchase Report” field is available on the tax group form and list views.
Test 2: OK - A purchase order with all lines belonging to the same tax group hides the Taxes column in the printed report.
Test 3: OK - A purchase order with lines belonging to different tax groups shows the Taxes column in the printed report.
Test 4: OK - Enabling “Show Tax Column in Purchase Report” on the tax group forces the Taxes column to be displayed even when all lines share the same tax group.
Test 5: OK - Disabling “Show Tax Column in Purchase Report” restores the automatic behavior and hides the Taxes column for homogeneous tax groups.
Test 6: OK - A purchase order with a single line hides the Taxes column when the tax group does not force its display.
Test 7: OK - Section and note lines do not affect the decision to show or hide the Taxes column.
Test 8: OK - Hiding the Taxes column does not alter purchase order amounts, tax summary, or totals.
Test 9: OK - Confirming the purchase order does not change the report visibility logic.
Test 10: OK - A purchase order without lines does not generate technical errors when printing or previewing the report.

Image

@EmilioPascual EmilioPascual left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job @chienandalu

Functional and code review

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@BhaveshHeliconia BhaveshHeliconia left a comment

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.

Just minor comments.

@classmethod
def setUpClass(cls):
super().setUpClass()
cls.vendor = cls.env["res.partner"].create({"name": "Test Vendor"})

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.

Suggested change
cls.vendor = cls.env["res.partner"].create({"name": "Test Vendor"})

BaseCommon already provides res.partner, so no need to create it again.

{
"name": "Purchase order line hide tax in report",
"summary": "Hide taxes column when they don't add value",
"version": "19.0.1.0.1",

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.

Suggested change
"version": "19.0.1.0.1",
"version": "19.0.1.0.0",

@rafaelbn

Copy link
Copy Markdown
Member

/ocabot migration purchase_order_report_hide_tax

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone May 25, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request May 25, 2026
5 tasks
@rafaelbn

Copy link
Copy Markdown
Member

@chienandalu please review comments

@chienandalu chienandalu force-pushed the 19.0-mig-purchase_order_report_hide_tax branch from 1ead023 to 86acde4 Compare May 26, 2026 06:38
@chienandalu

Copy link
Copy Markdown
Member Author

Changes done

@BhaveshHeliconia BhaveshHeliconia left a comment

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.

Code and functional review LGTM!

@rafaelbn rafaelbn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏼

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-96-by-rafaelbn-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 26217c4 into OCA:19.0 May 26, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 0a4fb95. 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.

9 participants