- Mailing Lists
- Contributors
- Re: cancel state on account.move
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: cancel state on account.move
by Alexis de Lattre - 08:36 - 6 Oct 2022
Reference
-
cancel state on account.move
Dear OCA friends,Up to Odoo v12, the "state" of an account.move had 2 possible values : "draft" and "posted".Starting from Odoo v13, the "state" field has one more possible value : "cancel". I hate that, but it's a fact :(The problem is : how should we handle these "cancel" moves. In several wizards/models, we give the user the choice between "posted moves only" and "all moves" ; does "all moves" means draft+posted or draft+posted+cancel ? Maybe a developer would consider that "all moves" means draft+posted+cancel, but a user often considers that cancelled moves should never be taken into account and "all moves" means draft+posted.Here is a summary of the situation on Odoo v14 in different modules :- account_financial_report : when the user selects "All entries", Odoo takes draft+posted
- sale and purchase : the "Invoiced qty" on the sale.order.line/purchase.order.line doesn't take into account the cancelled invoices (it only takes draft and posted invoices)
- l10n_fr_fec : when the user selects "Non-official FEC report (posted and unposted entries)", Odoo takes draft+posted+cancel
- lock dates : odoo allows to have moves with state="cancel" in a locked period (but moves in draft state are not allowed)
So the majority of modules considers that "all moves" means "draft + posted" and excludes "cancel" state. The fact that Odoo accepts cancel entries in a locked period confirms that cancelled moves should always be ignored, even when Odoo says "all entries".I think l10n_fr_fec should be fixed to adopt this behavior (I can make a PR for l10n_fr_fec_oca).The OCA modules account_cutoff_xxx from https://github.com/OCA/account-closing don't even have a field to say if you should select "all moves" (draft + posted) or "posted moves only" (at the moment, it takes all moves including cancelled moves). I'll make a PR to fix this.Do you know other modules that should be fixed on this ?For v16, maybe we should switch from the term "All entries" to "Draft and Posted entries"... what do you think ?
--Alexis de Lattre
by Alexis de Lattre - 03:55 - 6 Oct 2022-
Re: cancel state on account.move
Hi,Thanks a lot, Alexis.My accountant friends will be sooo happy with this cancel status ^^--
Virginie0477/64.17.20-----Original Message-----From: Alexis de Lattre <notifications@odoo-community.org>Reply-To: Odoo Community Association (OCA) Contributors <contributors@odoo-community.org>To: Contributors <contributors@odoo-community.org>Subject: Re: cancel state on account.moveDate: Thu, 06 Oct 2022 18:36:45 -0000Thanks for your answers ! We agree that moves with state = 'cancel' should always be ignored.Here are my PRs for v14 to fix this issue :- account_cutoff_xxx : https://github.com/OCA/account-closing/pull/205- account_check_deposit : https://github.com/OCA/account-financial-tools/pull/1475- l10n_fr_fec_oca : https://github.com/OCA/l10n-france/pull/375- l10n_fr_account_vat_return : https://github.com/OCA/l10n-france/pull/374- l10n_fr_das2: https://github.com/OCA/l10n-france/pull/376If you know a module that doesn't handle the "cancel" state on account.move correctly, please report it !Alexis_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Virginie Dewulf. - 03:51 - 17 Oct 2022 -
Re: cancel state on account.move
I'm also in-line with you Alexis.Le sam. 8 oct. 2022 à 10:27, Rafael Blasco <notifications@odoo-community.org> a écrit :Thank you!
Dear Alexis & OCA Friends,
I agree. Thank you, Alexis.
> For v16, maybe we should switch from the term "All entries" to "Draft and Posted entries"... what do you think ?
> Concerning naming on the report wizards: I think we should align with the naming of the Odoo financial reporting engine.
I agree. It is a misunderstanding for users. The estate of moves should be coherent with filters. 😊
+1
Best regards,
Rafael
De: Alexis de Lattre <notifications@odoo-community.org>
Enviado el: jueves, 6 de octubre de 2022 20:37
Para: Contributors <contributors@odoo-community.org>
Asunto: Re: cancel state on account.moveThanks for your answers ! We agree that moves with state = 'cancel' should always be ignored.
Here are my PRs for v14 to fix this issue :
- account_cutoff_xxx : https://github.com/OCA/account-closing/pull/205
- account_check_deposit : https://github.com/OCA/account-financial-tools/pull/1475
- l10n_fr_fec_oca : https://github.com/OCA/l10n-france/pull/375
- l10n_fr_account_vat_return : https://github.com/OCA/l10n-france/pull/374
- l10n_fr_das2: https://github.com/OCA/l10n-france/pull/376
If you know a module that doesn't handle the "cancel" state on account.move correctly, please report it !
Alexis
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Joël Grand Guillaume - 04:35 - 9 Oct 2022 -
RE: cancel state on account.move
Thank you!
Dear Alexis & OCA Friends,
I agree. Thank you, Alexis.
> For v16, maybe we should switch from the term "All entries" to "Draft and Posted entries"... what do you think ?
> Concerning naming on the report wizards: I think we should align with the naming of the Odoo financial reporting engine.
I agree. It is a misunderstanding for users. The estate of moves should be coherent with filters. 😊
+1
Best regards,
Rafael
De: Alexis de Lattre <notifications@odoo-community.org>
Enviado el: jueves, 6 de octubre de 2022 20:37
Para: Contributors <contributors@odoo-community.org>
Asunto: Re: cancel state on account.moveThanks for your answers ! We agree that moves with state = 'cancel' should always be ignored.
Here are my PRs for v14 to fix this issue :
- account_cutoff_xxx : https://github.com/OCA/account-closing/pull/205
- account_check_deposit : https://github.com/OCA/account-financial-tools/pull/1475
- l10n_fr_fec_oca : https://github.com/OCA/l10n-france/pull/375
- l10n_fr_account_vat_return : https://github.com/OCA/l10n-france/pull/374
- l10n_fr_das2: https://github.com/OCA/l10n-france/pull/376
If you know a module that doesn't handle the "cancel" state on account.move correctly, please report it !
Alexis
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Rafael Blasco (Moduon) - 10:25 - 8 Oct 2022 -
Re: cancel state on account.move
Thanks for your answers ! We agree that moves with state = 'cancel' should always be ignored.Here are my PRs for v14 to fix this issue :- account_cutoff_xxx : https://github.com/OCA/account-closing/pull/205- account_check_deposit : https://github.com/OCA/account-financial-tools/pull/1475- l10n_fr_fec_oca : https://github.com/OCA/l10n-france/pull/375- l10n_fr_account_vat_return : https://github.com/OCA/l10n-france/pull/374- l10n_fr_das2: https://github.com/OCA/l10n-france/pull/376If you know a module that doesn't handle the "cancel" state on account.move correctly, please report it !Alexis
by Alexis de Lattre - 08:36 - 6 Oct 2022 -
RE: cancel state on account.move
Imho ‘cancelled’ entries are functionally equal to no entry at all, hence unposted & posted is sufficient in the reports.
I do like having cancelled entries since it allows the customer (and external auditors) to analyze historical transactions (useful when there are gaps in the invoice numbering due to cancel).
Up till now I haven’t seen any demand in our customer base to develop a report on cancelled entries. The standard list view filters and export features are sufficient.
Concerning naming on the report wizards: I think we should align with the naming of the Odoo financial reporting engine.
Regards,
Luc
From: Alexis de Lattre <notifications@odoo-community.org>
Sent: Thursday, 6 October 2022 15:57
To: Contributors <contributors@odoo-community.org>
Subject: cancel state on account.moveDear OCA friends,
Up to Odoo v12, the "state" of an account.move had 2 possible values : "draft" and "posted".
Starting from Odoo v13, the "state" field has one more possible value : "cancel". I hate that, but it's a fact :(
The problem is : how should we handle these "cancel" moves. In several wizards/models, we give the user the choice between "posted moves only" and "all moves" ; does "all moves" means draft+posted or draft+posted+cancel ? Maybe a developer would consider that "all moves" means draft+posted+cancel, but a user often considers that cancelled moves should never be taken into account and "all moves" means draft+posted.
Here is a summary of the situation on Odoo v14 in different modules :
- account_financial_report : when the user selects "All entries", Odoo takes draft+posted
- sale and purchase : the "Invoiced qty" on the sale.order.line/ purchase.order.line doesn't take into account the cancelled invoices (it only takes draft and posted invoices)
- l10n_fr_fec : when the user selects "Non-official FEC report (posted and unposted entries)", Odoo takes draft+posted+cancel
- lock dates : odoo allows to have moves with state="cancel" in a locked period (but moves in draft state are not allowed)
So the majority of modules considers that "all moves" means "draft + posted" and excludes "cancel" state. The fact that Odoo accepts cancel entries in a locked period confirms that cancelled moves should always be ignored, even when Odoo says "all entries".
I think l10n_fr_fec should be fixed to adopt this behavior (I can make a PR for l10n_fr_fec_oca).
The OCA modules account_cutoff_xxx from https://github.com/OCA/account-closing don't even have a field to say if you should select "all moves" (draft + po sted) or "posted moves only" (at the moment, it takes all moves including cancelled moves). I'll make a PR to fix this.
Do you know other modules that should be fixed on this ?
For v16, maybe we should switch from the term "All entries" to "Draft and Posted entries"... what do you think ?
--Alexis de Lattre
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Luc De Meyer. - 04:51 - 6 Oct 2022