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

[15.0][IMP] payroll_account: allow other modules to influence the values of the journal items #146

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

AaronHForgeFlow
Copy link
Contributor

Simplify action_payslip_done by adding prepare methods. This allows third modules to introduce changes in the journal items. Introducing changes may be necessary in case the third module adds a mandatory field that is not filled in, for example, the account_operating_unit module adds the operating unit as mandatory in the journal item.

cc @ForgeFlow

@OCA-git-bot
Copy link
Contributor

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

@AaronHForgeFlow
Copy link
Contributor Author

pre-commit will pass when #147 is merged

@AaronHForgeFlow AaronHForgeFlow force-pushed the 15.0-imp-payroll_account-hooks branch from 390e2cb to 58d0511 Compare February 26, 2024 17:20
Make action_payslip_done by adding prepare methods.
This allows third modules to introduce changes in the
journal items. Introducing changes may be necessary in case
the third module adds a mandatory field that is not filled in.
@AaronHForgeFlow AaronHForgeFlow force-pushed the 15.0-imp-payroll_account-hooks branch from 58d0511 to 00bec4a Compare March 4, 2024 10:04
Copy link
Contributor

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nimarosa nimarosa left a comment

Choose a reason for hiding this comment

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

Changes looks good. Functionality tested in runboat and seems okay.

@AaronHForgeFlow Can you port this PR when merged to v16.0 too? That way we maintain this improvement in future versions.

@nimarosa
Copy link
Contributor

nimarosa commented Mar 8, 2024

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-146-by-nimarosa-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 1a50373 into OCA:15.0 Mar 8, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@MiquelRForgeFlow MiquelRForgeFlow deleted the 15.0-imp-payroll_account-hooks branch March 8, 2024 18:20
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