[19.0][MIG] account_invoice_date_due: Migration to 19.0#2282
Open
gdgellatly wants to merge 21 commits intoOCA:19.0from
Open
[19.0][MIG] account_invoice_date_due: Migration to 19.0#2282gdgellatly wants to merge 21 commits intoOCA:19.0from
gdgellatly wants to merge 21 commits intoOCA:19.0from
Conversation
Allow update the date due in an invoice (Even if it's done). To avoid cancel the invoice and generate again
This applies pending comments on OCA#632, which are: - Fix some typos - Be consistent with the license, use AGPL-3 - Add maintainer (not commented) - Set group data as noupdate (not commented)
Don't use the wizard, but make the invoice_date_due editable for a specific group Still, propagate the change to the invoice lines Add tests TT28875
- Include context keys for avoiding mail operations overhead.
The write method failed with a singleton error when updating a batch of records. This was caused by accessing `self.state` on the entire recordset. The logic is now fixed to first filter for `posted` moves, and then apply the due date propagation only to that safe subset. This ensures batch operations no longer crash.
608319b to
9067af4
Compare
dannyadair
approved these changes
Mar 3, 2026
dannyadair
left a comment
There was a problem hiding this comment.
Still 18.0 references in
- README.rst
- static/description/index.html
- i18n/account_invoice_date_due.pot
Otherwise code and functionality LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migration of
account_invoice_date_duemodule to 19.0.groups_id->group_idsrename in tests (v19 breaking change)Test plan
--test-enable(3/3 tests pass)