Skip to content

Conversation

@metaminux
Copy link

@metaminux metaminux commented Oct 28, 2025

In 14.0, account_statement_import_online_ponto have bugs.

Most important bugs are :

  • Ponto API is providing transactions from the last created backwards (so comparing to "Value Date" or "Execution Date" to end retrieval can lead to transaction loss)
  • Also, taking "Value Date" or "Execution Date" as statement "date" field is leading to filtering out transactions not imported yet

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

NL66278 and others added 3 commits October 27, 2025 14:12
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.
@OCA-git-bot
Copy link
Contributor

Hi @alexey-pelykh,
some modules you are maintaining are being modified, check this out!

@metaminux metaminux force-pushed the 14.0_backport_ponto_from_16.0 branch 5 times, most recently from fc5e456 to 4802142 Compare October 28, 2025 04:55
@metaminux
Copy link
Author

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 ?

CC @sebastienbeau

Copy link
Contributor

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

NL66278 and others added 7 commits November 3, 2025 14:47
…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.
@metaminux metaminux force-pushed the 14.0_backport_ponto_from_16.0 branch from 4802142 to b317d51 Compare November 4, 2025 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants