Commit Graph

185 Commits

Author SHA1 Message Date
Marcos Oitaben
baf490f0e0 [IMP] account_move_name_sequence: pre-commit stuff 2025-01-29 02:15:30 +00:00
BT-anieto
4f8dd99109 [FIX] account_move_name_sequence: call _inverse_name after computing the name
The core compute function for the name is calling at the end the function self._inverse_name(),
which updates the payment_reference when required.
This code was currently missing, causing the payment_reference not being properly computed,
for example, when using QR-Bills.
2025-01-29 02:15:30 +00:00
Andrea Gidalti
88b968cb07 [REF] account_move_name_sequence: rename hooks file
Rename hooks file and use post_init_hook method to create journal sequences
after module installation.
2025-01-29 02:15:30 +00:00
Hussain Hammad
b5167128f9 Added translation using Weblate (Arabic) 2025-01-29 02:15:30 +00:00
Andrea Stirpe
40d10392bd [FIX] account_move_name_sequence: do not create duplicated sequences 2025-01-29 02:15:30 +00:00
Alexis de Lattre
b3853ec516 Translated using Weblate (French)
Currently translated at 100.0% (20 of 20 strings)

Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_move_name_sequence
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_name_sequence/fr/
2025-01-29 02:15:30 +00:00
gelo joga Rodríguez
4d761d9ffb Added translation using Weblate (Spanish) 2025-01-29 02:15:30 +00:00
Rémi
62a42dc03a Added translation using Weblate (French) 2025-01-29 02:15:30 +00:00
remi-filament
306c765f5f [FIX] account_move_name_sequence: computed fields raising warning 2025-01-29 02:15:30 +00:00
Bole
bfc9142f57 Added translation using Weblate (Croatian) 2025-01-29 02:15:30 +00:00
Rodrigo
14d8678016 [FIX] account_move_name_sequence: Now you can unlink moves without check sequence fix: 6112f4f59a 2025-01-29 02:15:30 +00:00
Rodrigo
d299b3ee0d [FIX] account_move_name_sequence: With the "account_move_name_sequence" module the "_get_last_sequence" method does not have to propagate the with_prefix parameter. The sequence_prefix parameter will not be completed and will give error as it is False in this line of code. https://github.com/OCA/OCB/blob/16.0/addons/account/models/sequence_mixin.py#L169 2025-01-29 02:15:30 +00:00
Moisés López
978a6bb9d4 [REF] account_move_name_sequence: Remove concurrency outdated cases from the readme 2025-01-29 02:15:30 +00:00
Rodrigo
004b221dcc [FIX] account_move_name_sequence: call flush before _fetch_duplicate_supplier_reference method
same issue https://github.com/OCA/account-financial-tools/issues/1501
this fix not working for v16 https://github.com/OCA/account-financial-tools/pull/1514
2025-01-29 02:15:30 +00:00
Rodrigo
cd37461f65 [FIX] account_move_name_sequence: issue #1465 vals get refund_sequence true if value not get in vals 2025-01-29 02:15:30 +00:00
Rodrigo
55b81d011b [FIX] account_move_name_sequence: return sequence names do not add a space between name and returns. 2025-01-29 02:15:30 +00:00
Rodrigo
52c8db8ff3 [MIG] account_move_name_sequence: Migration to 16.0 2025-01-29 02:15:30 +00:00
Pierre Verkest
21b9b459e0 [FIX] account_move_name_sequence: Use account move date to compute prefix
In case you want name your invoice YYYY-MM-SEQ (ie: 2022-07-00001)
where:
 * YYYY: is the account move year
 * MM: is the account move month
 * SEQ: is a numerical sequence that is continue along the fiscal year
   assuming fiscal year is over two years (ie: from july to june next year)

Before this commit the sequence prefix use now() to be compute but the
range is selected with the account move date.

This commit make consistency computing prefix with the account
move date as well.

So account move manage the first janunary for the last day of
the previous year will properly use the account move date.

Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
2025-01-29 02:15:30 +00:00
Francisco Javier Luna Vazquez
2337fdbadf [FIX] account_move_name_sequence: Exclude no_gap sequences from _is_end_of_seq_chain 2025-01-29 02:15:30 +00:00
Francisco Javier Luna Vazquez
bc65e81afd [MIG] account_move_name_sequence: Migration to 15.0 2025-01-29 02:15:30 +00:00
Francisco Javier Luna Vazquez
3c39bc059f [REF] account_move_name_sequence: Use Odoo native methods + Typos 2025-01-29 02:15:30 +00:00
Moisés López
b31a2fa6e3 [REF] account_move_name_sequence: Adding concurrency cases in README 2025-01-29 02:15:30 +00:00
Moises Lopez
ff14789dca [REF] account_move_name_sequence: Add maintainers to myself 2025-01-29 02:15:30 +00:00
Moises Lopez
fa4dcdc48b [FIX] account_move_name_sequence: Fix required journal fields in view
The required flag was wrong for sequence_id and refund_sequence_id

So, it was not possible to store any change in journal for journal different to sale and purchase
2025-01-29 02:15:30 +00:00
Moises Lopez
fcba769b63 [REF] account_move_name_sequence: Moves with name '/' can not be posted
After remove required=True for journal.sequence_id field it is possible to post an invoice with misconfigured journal with empty sequence

So, this constraint will raise an error for this kind of cases since that using '/' could raise the unique constraint for all other moves
2025-01-29 02:15:30 +00:00
Moises Lopez
eb342d5fc7 [FIX] account_move_name_sequence: Fix sequence domain to assign only if it is empty 2025-01-29 02:15:30 +00:00
Moises Lopez
c96b75d8c9 [REF] account_move_name_sequence: Discard journals already configured 2025-01-29 02:15:30 +00:00
Moises Lopez
4534129918 [FIX] ir_sequence: Fix creating date_range_seq with range_month and range_day
More info about:
 - https://github.com/odoo/odoo/pull/91019

TODO: Revert this commit after it is merged
2025-01-29 02:15:30 +00:00
Moises Lopez
617a4890f9 [REF] account_move_name_sequence: Add number_next_actual and date range lines data based on current moves 2025-01-29 02:15:30 +00:00
Alexis de Lattre
913054103d sequence is now required on journals
Add post-install script to create a sequence for all existing journals
Update README accordingly
2025-01-29 02:15:30 +00:00
Alexis de Lattre
8a2933e551 Add module account_move_name_sequence
This module restores the good old behavior where journal entry numbers
were generated from a sequence configured on the journal.
2025-01-29 02:15:30 +00:00
mymage
cc8613b05d Translated using Weblate (Italian)
Currently translated at 100.0% (21 of 21 strings)

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_fiscal_year
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_fiscal_year/it/
2025-01-27 12:06:39 +00:00
Weblate
4083734233 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_fiscal_year
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_fiscal_year/
2025-01-09 11:52:01 +00:00
OCA-git-bot
2a4a6d985a [BOT] post-merge updates 2025-01-09 11:42:31 +00:00
oca-ci
b3317e6e7a [UPD] Update account_fiscal_year.pot 2025-01-09 11:40:15 +00:00
OCA-git-bot
38e7fb080c Merge PR #1977 into 18.0
Signed-off-by AaronHForgeFlow
2025-01-09 11:38:09 +00:00
Salvatore Davide Rapisarda
b43ddd2c0d [MIG] account_fiscal_year: Migration to 18.0 2025-01-07 17:25:50 +01:00
mymage
123c1e9b27 Translated using Weblate (Italian)
Currently translated at 100.0% (4 of 4 strings)

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_journal_restrict_mode
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_journal_restrict_mode/it/
2024-12-31 16:06:43 +00:00
Weblate
e6c0c66b75 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_journal_restrict_mode
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_journal_restrict_mode/
2024-12-30 15:52:18 +00:00
Weblate
ffe407b355 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_move_post_date_user
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_move_post_date_user/
2024-12-30 15:52:17 +00:00
OCA-git-bot
e4a8f6e3f8 [BOT] post-merge updates 2024-12-30 12:45:10 +00:00
oca-ci
43406074a4 [UPD] Update account_move_post_date_user.pot 2024-12-30 12:42:50 +00:00
OCA-git-bot
d4090ca207 Merge PR #1993 into 18.0
Signed-off-by AaronHForgeFlow
2024-12-30 12:40:51 +00:00
OCA-git-bot
358734fe00 [BOT] post-merge updates 2024-12-30 12:38:36 +00:00
oca-ci
6c90b3000b [UPD] Update account_journal_restrict_mode.pot 2024-12-30 12:36:20 +00:00
OCA-git-bot
654883cc58 Merge PR #1991 into 18.0
Signed-off-by AaronHForgeFlow
2024-12-30 12:34:27 +00:00
mymage
9c578842ed Translated using Weblate (Italian)
Currently translated at 100.0% (16 of 16 strings)

Translation: account-financial-tools-18.0/account-financial-tools-18.0-account_usability
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_usability/it/
2024-12-17 15:06:27 +00:00
Sara Diaz
e45b7e6adb [MIG] account_move_post_date_user : Migration to 18.0 2024-12-17 11:32:05 +01:00
OCA-git-bot
d61ce142cf [BOT] post-merge updates 2024-12-17 11:28:32 +01:00
oca-ci
4f9d7c2e3e [UPD] Update account_move_post_date_user.pot 2024-12-17 11:28:32 +01:00