-
-
Notifications
You must be signed in to change notification settings - Fork 472
[14.0][BACKPORT] account_statement_import_online_ponto (from 16.0) #850
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
base: 14.0
Are you sure you want to change the base?
Conversation
With Ponto we can only retrieve data backwards in time. Therefore we override the normal _pull method to create statements in descending order of statement date.
|
Hi @alexey-pelykh, |
fc5e456 to
4802142
Compare
|
I had to take some changes to account_statement_import_online (from #548) Most of them are tests rewrite though... I had to adapt account_statement_import_online_ponto_ing too (not ported to 16.0) Can anyone review this ? @alexey-pelykh ? @NL66278 ? @astirpe ? @vaab ? @victoralmau ? |
NL66278
left a comment
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.
👍 LGTM
…ttempt to modify of posted account.move
…back to load CoA Since odoo/odoo@d0342c8, the default existing company is not getting a CoA automatically, provoking than the current tests fail with the error: odoo.exceptions.UserError: No journal could be found in company My Company (San Francisco) for any of those types: sale Thus, we put tests post-install for being sure localization modules are installed, the same as AccountTestInvoicingCommon does, but we don't inherit from it, as it creates an overhead creating 2 new companies and loading their CoA and some more stuff, while we don't need all of that. Besides, if you don't have `l10n_generic_coa` installed, you can't use another CoA (like `l10n_es`) easily, so we put little code to select the first available CoA.
…er is non-deterministic
…e in ponto transaction create vals
4802142 to
b317d51
Compare
In 14.0, account_statement_import_online_ponto have bugs.
Most important bugs are :
Those bugs have been fixed in 16.0, mainly in the migration commit from 15.0 to 16.0
I suggest to backport changes from 16.0 to get same behaviour between versions...