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

[16.0][MIG] account_reversal (reversal usability improvements) #1725

Open
wants to merge 77 commits into
base: 16.0
Choose a base branch
from

Conversation

rousseldenis
Copy link

@rousseldenis rousseldenis commented Sep 19, 2023

  • Adds reversal id field

@OCA-git-bot
Copy link
Contributor

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

@rousseldenis rousseldenis force-pushed the 16.0-mig-account-reversal-dro branch 4 times, most recently from 5a36227 to 403c1a3 Compare September 19, 2023 09:24
@IT-Ideas
Copy link

Hello @rousseldenis, I just added a commit in order to fix #1761. Could you add it in the PR message?

@sbidoul sbidoul added this to the 16.0 milestone Jan 1, 2024
@sbidoul sbidoul changed the title [16.0][MIG] account_reversal [16.0][MIG] account_reversal (reversal usability improvements) May 21, 2024
@sbidoul
Copy link
Member

sbidoul commented May 21, 2024

I have pushed a couple of minor fixes and clarifications.

I think it's ok to keep the module name as is to reduce migration burden for users of the module in older Odoo versions.

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 22, 2024
@github-actions github-actions bot closed this Oct 27, 2024
@sbidoul sbidoul reopened this Oct 27, 2024
@sbidoul sbidoul removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 27, 2024
Copy link

@vdewulf vdewulf left a comment

Choose a reason for hiding this comment

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

Tested on runboat with success.

  • adding a checkbox and filter "to be reversed" on account moves. => OK
  • allowing to add a line reason (the move reason already exists in core). => OK
  • makes the reason for account entries visible for normal entries too. Not really tested.

The list of Entries to be reversed exists and in the list, the entry disappears once reversed. the info of the reversed entry is visible on both journal entries.

Works as expected.
Sélection_362
Sélection_360

Sélection_361

@OCA-git-bot
Copy link
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). 🤖

@vdewulf
Copy link

vdewulf commented Jan 30, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1725-by-vdewulf-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jan 30, 2025
Signed-off-by vdewulf
@OCA-git-bot
Copy link
Contributor

@vdewulf your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1725-by-vdewulf-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

…ed flag and reversal_id many2one

(lp:c2c-addons/6.1  rev 5609)
yvaucher and others added 28 commits January 30, 2025 11:04
* OCA Transbot updated translations from Transifex
* Add option to reconcile the reversal move with the original move (OCA#387)
* [IMP] account_reversal: Several improvements
* Default date for reverse move is not start_date of the period following the period of the original move (and not the period following today's period)
* Return form view of account.move if only 1 move is reversed
* Add option to reconcile with the reversal entry.
* [10.0][MIG] account_reversal migration
* [CHG] skid Odoo method to allow better performance on huge volume
Currently translated at 86.7% (26 of 30 strings)

Translation: account-financial-tools-11.0/account-financial-tools-11.0-account_reversal
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_reversal/ar/
Currently translated at 100.0% (30 of 30 strings)

Translation: account-financial-tools-11.0/account-financial-tools-11.0-account_reversal
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_reversal/nl/
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-11.0/account-financial-tools-11.0-account_reversal
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_reversal/
Migration to 16.0 by expanding core features adding:

- The line reason to reversal
- The 'To Be Reversed' field and filter
- Displaying the move reason not only for invoices
This commit adds the `reversal_id` field in order to improve
the UX of the move reversal functionality. The field has been
added to the form view close to the `reversed_entry_id` field
already present in the view.

This commit also introduces a constraint preventing the user
to flag a move as to be reversed when a non cancelled reversal
move has already been created. This allows simplifying the domain
used on the `to_be_reversed` filter.

Finally, it also convert the deprecated `SavepointCase` test
into a `TransactionCase` one.

Fixes: OCA#1761
After this commit, the order is
- To be reversed flag
- Reversal Entry
- Reversal of

Before, the flag was between the entries which was weird.
@sbidoul sbidoul force-pushed the 16.0-mig-account-reversal-dro branch from cfc1ec0 to 5d696bb Compare January 30, 2025 10:04
@sbidoul
Copy link
Member

sbidoul commented Jan 30, 2025

rebased to investigate the merge failure

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.