Browse Source
[IMP] *_online_ponto: Transactions are read backwards from Ponto.
[IMP] *_online_ponto: Transactions are read backwards from Ponto.
The streamlined logic means we no longer have to store (or clear) the last identifier retrieved from Ponto. We will always read from the latest data, backward until we hit an execution date that is before the date we are interested in.12.0
Ronald Portier (Therp BV)
2 years ago
No known key found for this signature in database
GPG Key ID: A181F8124D7101D3
7 changed files with 95 additions and 25 deletions
-
5account_bank_statement_import_online_ponto/__manifest__.py
-
20account_bank_statement_import_online_ponto/data/ir_cron.xml
-
63account_bank_statement_import_online_ponto/models/online_bank_statement_provider_ponto.py
-
6account_bank_statement_import_online_ponto/models/ponto_buffer.py
-
1account_bank_statement_import_online_ponto/models/ponto_buffer_line.py
-
8account_bank_statement_import_online_ponto/models/ponto_interface.py
-
13account_bank_statement_import_online_ponto/views/online_bank_statement_provider.xml
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" ?> |
|||
<!-- |
|||
Copyright 2022 Therp BV (https://therp.nl) |
|||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo noupdate="1"> |
|||
|
|||
<record model="ir.cron" id="ir_cron_purge_ponto_buffer"> |
|||
<field name="name">Remove old data from ponto buffers</field> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">days</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="state">code</field> |
|||
<field name="nextcall">2019-01-01 00:20:00</field> |
|||
<field name="doall" eval="False"/> |
|||
<field name="model_id" ref="account_bank_statement_import_online_ponto.model_online_bank_statement_provider"/> |
|||
<field name="code">model._ponto_buffer_purge()</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue