Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Hyväksynnät
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinta
    • Puutarhanhoito
    • Kiinteistön omistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivouspalvelut
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus  
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Kurssit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Kirjanpito
  • Varastointi
  • PoS
  • Projekti
  • MRP
All apps
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

RecursionError: maximum recursion depth exceeded while calling a Python object when import bank statement odoo 14 EE

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
datebank_statementrecursionEEv14
1 Vastaa
16296 Näkymät
Avatar
rehan

hello guys, i want to know if there bugs by odoo in bank statement, so i want to import bank statement data with date 2021-01-31 (today date is 2021-09-08) but i get this error

RecursionError: maximum recursion depth exceeded while calling a Python object

when i check further log it said this error:
File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_bank_statement.py", line 152, in _compute_ending_balance
    statement.balance_end_real = statement.previous_statement_id.balance_end_real + total_entry_encoding

even after i create a bank statement then change the date it will also show this error

anyone know what is it? thank you

1
Avatar
Hylkää
Avatar
Alexandr
Paras vastaus

Yes, there is a problem in algorithm. When you create a statement with date earlier than several existing statements, is required to recompute starting and ending balances of these statements. And here we gets the RecursionError if there is a large enough statements amount to recompute.

When i tried to import into Odoo a large amount of statements, i got the same issue. And the only workaround i found was to sort data before import for avoiding this recomputing.

In your case, seems, you can export statements, newer than one to create, to xlsx, delete them from the system, create your statement and then import exported statements back and reconcile them with payments again.
---

upd: Python recursion check is based on interpreter stack length, and when Odoo trying to recompute large statements amount, it just exceed this limit,  which  is 1000 by default. So you can try to increase  python recursion limit setting in your code using `sys.setrecursionlimit(some_limit_value)` that will be enough to perform all statements recomputing.

1
Avatar
Hylkää
rehan
Tekijä

thanks for replying me.. but how can i delete it, when i delete it on the system it also throws the same error..

Alexandr

Records should be deleted from last to first. In this case there is nothing to recompute.
Also If you have a problem with RecursionError, it means you have a lot statements to delete. It will be better to do this from shell.

Or you can try to increase python recursion limit.

rehan
Tekijä

yes yes, yesterday i just delete the datas with sql query but still got the error and i think the second solution might solve the problem, is the thing that i need to do is import module sys from python and directly edit sys.setrecursionlimit from python file in models directory in module odoo?? did you have any reference? thanks..

Alexandr

To modify Odoo data with raw SQL request it is bad idea. You should use model methods to change model data.

To change interpreter stack limit you should in any your odoo module, in any python file (for example "__init__.py")) insert 2 strings:
```
from sys import setrecursionlimit
setrecursionlimit(some_value_more_than_1000)
```

rehan
Tekijä

alright, it works! but i want to know is there a consequence if we extend the limit of recursion in odoo? thanks a lot man, really appreciate it

Alexandr

If your new limit will be more than your system can handle, you can get C's StackOverflowException.

rehan
Tekijä

do you have any reference for me to calculate things between max limit recursion and my system capabilities?

Alexandr

I haven't, sorry.
I just can to recomend set this parameter at lowest value allowing to solve your problem. It should be far away from system limits.

rehan
Tekijä

it's okay.. thanks again anyway mate, i will pray for your success for helping me

Obay Abdelgadir

Someone I know encountered the same issue when closing pos session, with really big database (~60 GB). I think it is worth mentioning that if you increase the recursion limit, you must also increase the stack memory size, to avoid stackoverflow errors. see this https://stackoverflow.com/a/16248113/3557761

Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
Timing Automatic Bank synchronizastion Ratkaistu
accounting bank_statement v14
Avatar
Avatar
1
helmik. 25
3529
customize date filter odoo 14
filter date v14
Avatar
Avatar
1
heinäk. 22
4122
Where is the Odoo14 reconcile bank statement button? Ratkaistu
bank_statement reconcile v14
Avatar
Avatar
2
huhtik. 21
3203
How to change first day of the week Ratkaistu
date listview v14
Avatar
1
jouluk. 20
8422
Where exactly is the date format filled from for a language? Ratkaistu
date odoo8.0 v14
Avatar
Avatar
1
maalisk. 15
9714
Yhteisö
  • Kurssit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Tavaramerkki
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudellinen ilmoitus • Yksityisyys
  • Tietoturva
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon uniikki arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now