Skip to content

[18.0][IMP] hr_expense_petty_cash: fix journal items on petty cash with included tax and analytic#371

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
ecosoft-odoo:18.0-fix-petty_cash-journal-tax-analytic
Jun 30, 2026
Merged

[18.0][IMP] hr_expense_petty_cash: fix journal items on petty cash with included tax and analytic#371
OCA-git-bot merged 1 commit into
OCA:18.0from
ecosoft-odoo:18.0-fix-petty_cash-journal-tax-analytic

Conversation

@Saran440

Copy link
Copy Markdown
Member

This PR fixed 2 case

  1. Send analytic distribution to journal entry of petty cash
  2. Fixed line included tax following expense standard

Before
selection_432

After
Screenshot 2026-06-23 200155

@Saran440 Saran440 force-pushed the 18.0-fix-petty_cash-journal-tax-analytic branch from 3cdc389 to a913766 Compare June 25, 2026 01:48
@Saran440

Copy link
Copy Markdown
Member Author

@BhaveshHeliconia Hi! Since you migrated this module to v18, would you be okay if we changed these lines?

I think this is the standard approach. What do you think?

@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.

I tested this PR on an Odoo 18.0 database, and it works as expected. The refactored code uses Odoo 18's native journal entry engine to handle the tax split correctly.

@ROBBYHOOD9 ROBBYHOOD9 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.

LGTM

@Saran440

Copy link
Copy Markdown
Member Author

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-371-by-Saran440-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 40796a5 into OCA:18.0 Jun 30, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

4 participants