-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
[10.0][MIG] Port l10n_nl_xaf_auditfile_export #59
[10.0][MIG] Port l10n_nl_xaf_auditfile_export #59
Conversation
this looks good at first glance. Before diving into details, did you consider using https://github.com/OCA/server-tools/tree/10.0/date_range for the dates? Most accounting related OCA modules involving intervals use this, so I think it's more convenient for the user to use it here too |
With this first commit, I assume that the module works with the following limitations:
|
@hbrunn Yes, |
How about extending date ranges with the fields you need? This way you don't need assumptions, and also support nonstandard accounting periods, because the user can define the ranges however she sees fit. Then this module (or some helper module) can define a fiscal period date range type, and then you're done. Let's call it |
@hbrunn That idea was discussed during the Sorrento Code sprint for better generating fiscal reports; at the end we all agreed that reintroducing fiscal periods would be unwanted and undesirable. In my opinion, if the limitations I just described above are well accepted from the NL Community, then we could think about keeping this module decoupled from an hypothetical Thank you! |
Let's see what other Dutch community members say. I'd welcome such a module, as the concept of a financial period (in the sense of: I want to easily filter for what I consider my relevant periods for move lines) is hard to knock out of our customers' accountants' minds... |
I'm testing it. I went to accounting - settings and changed the last date of the fiscal year. Then when I opened the form for the auditfile, the end-date is still 31st of december. It should be the same as the end date in the accounting settings. The default start date should be 12 months before the end date.
|
@jvOrsouw thank you for the feedback! I've just tried in my local PC to change the last date of the fiscal year from the standard Odoo (accounting -> settings) and the module worked correctly. The default end date is the one set in the settings and the default start date is 12 months before the end date. About the second point, indeed the periods have the wrong start and end date! I'm working on it for a fix. Thank you! And thanks for confirming the other 2 points! |
retested the issue: I noticed that when the module 'account_fiscal_year' is installed, the start and end date look at the fiscal year entered as 'date range'. When I deleted this range, the fiscal period changes to the fiscal year as entered in the accounting settings. That's exactly what I want, so that works exactly as it should.
this module is working well for me. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's my review. Anyway I don't consider it blocking. 👍
raise exceptions.ValidationError( | ||
_('You need to choose consecutive periods!')) | ||
_('Starting date must be anterior ending date!')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the if condition, starting date can be also equal to ending date.
Please, either correct the condition or the error message.
I've just moved the menuitem for the exporting action, because there was a crash when installing the module in Odoo Enterprise. I've also enabled the feature for the groups 'Accountant' and 'Adviser', so that having just the 'Billing' rights is not enough. Please let me know if you agree... |
I tested the module on an Odoo 10 Enterprise instance. the module works correctly. I'm not sure if adding the year to the period numbering is correct, but it's a nice solution for exporting multiple years. Time will tell. |
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
* Align code with l10n_nl_xaf_auditfile_export V8 * Porting to V10 * Update readme * Minor code review * Fix start and end date of periods + updated readme * Fix condition when checking dates * Update Usage in readme according V10 menu names * Replace bank field with bank_id * Make menuitem compatible with Odoo enterprise * Add nl.po file (courtesy of @ploegvde) * Fix menu name in readme * Add empty line in chatter between errors
I'm interested in porting module
l10n_nl_xaf_auditfile_export
to V10.This is a work in progress. In case someone already started to work on it and wants to open a different PR, I'm ready to close this one.
Module
l10n_nl_xaf_auditfile_export
for V8 exports accounting data referring to fiscal periods. But periods were removed from the accounting of Odoo since V9. As per the specifications of the XAF auditfile format, reference to fiscal periods seem required (for example<periodNumber>
).Does anyone already analyzed or found a solution about this issue?