Skip to content

[19.0] account_cutoff_base: Move the constraint on uniqueness for cutoff date at line level - #382

Open
petrus-v wants to merge 163 commits into
OCA:19.0from
petrus-v:19.0-account_cutoff-port-343-move-constraints
Open

[19.0] account_cutoff_base: Move the constraint on uniqueness for cutoff date at line level#382
petrus-v wants to merge 163 commits into
OCA:19.0from
petrus-v:19.0-account_cutoff-port-343-move-constraints

Conversation

@petrus-v

Copy link
Copy Markdown

port #343 account_cutoff_base part on top of #381

Alexis de Lattre and others added 30 commits July 15, 2026 16:42
Use assert
Remove .keys()
No space before colon
PEP8/Flake8 : getting closer to compliancy
…de domains)

On account.account, type must be <> 'view' and <> 'closed'
…a single warning left !

Add translation template files.
The signature of existing methods is preserved.
Extract a new module account_invoice_start_end_dates from account_cutoff_prepaid
Use triple double quotes for docstring
Replace <openerp> by <odoo> in XML
Remove <data> tags in XML
Remove POT files
Currently translated at 100,0% (73 of 73 strings)

Translation: account-closing-11.0/account-closing-11.0-account_cutoff_base
Translate-URL: https://translation.odoo-community.org/projects/account-closing-11-0/account-closing-11-0-account_cutoff_base/de/
alexis-via and others added 22 commits July 15, 2026 16:42
Add record rules for cutoff lines and cutoff tax lines
On account.cutoff, the domain for the cutoff journal has
type='general', like on the default value the accounting config page
Fix license in manifest which was set to LGPL by mistake in the
migration commit from v16 to v17
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-18.0/account-closing-18.0-account_cutoff_base
Translate-URL: https://translation.odoo-community.org/projects/account-closing-18-0/account-closing-18-0-account_cutoff_base/
Currently translated at 100.0% (132 of 132 strings)

Translation: account-closing-18.0/account-closing-18.0-account_cutoff_base
Translate-URL: https://translation.odoo-community.org/projects/account-closing-18-0/account-closing-18-0-account_cutoff_base/it/
Currently translated at 100.0% (132 of 132 strings)

Translation: account-closing-18.0/account-closing-18.0-account_cutoff_base
Translate-URL: https://translation.odoo-community.org/projects/account-closing-18-0/account-closing-18-0-account_cutoff_base/fr/
Currently translated at 100.0% (132 of 132 strings)

Translation: account-closing-18.0/account-closing-18.0-account_cutoff_base
Translate-URL: https://translation.odoo-community.org/projects/account-closing-18-0/account-closing-18-0-account_cutoff_base/es_AR/
in order to reduce the record set to loop on
Allow to automatically reverse generated moves
Allow to configure different account for refunds (credit notes)
Comment thread account_cutoff_base/migrations/19.0.1.0.1/post-migrate.py
…ff date at line level + Add the possibility to create several cutoff with the same date + Add a configuration to check cutoff date unicity either on lines or on the whole cutoff

Business case can be :

- One user (A) creates a cutoff for some account moves. Another user (B) creates other moves, then wants to see those moves in a cutoff.
      However, B does not want to interfere with the cutoff A already made. B creates a new cutoff with the same date as the one of A, and when he generates lines,
      only retrieves the one that were not already in the cutoff of A.

- One user wants to create several cutoff at the same date, but for different journals/accounts
@petrus-v
petrus-v force-pushed the 19.0-account_cutoff-port-343-move-constraints branch from d25537a to b6d4c24 Compare July 16, 2026 14:38

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

I reviewed only the last commit that integrates

Code LGTM and I think that you fixed a bug here (using id of lines to search on parent): https://github.com/OCA/account-closing/pull/343/changes#diff-191f90fce2c30a95de8f7309b0045c5a9827577f933e93e9d4576cb5ba2d530dR128

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_cutoff_base Module account_cutoff_base series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.