Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
CFDI4.0 CartaPorte Multiple-companies email odoo.sh
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
CFDI4.0 CartaPorte Multiple-companies email odoo.sh
O tomto fóru
  1. Miscellaneous
  2. Fórum

Loading never ends when set store=True in computed field and set default field in model that has over 600k datas

Odebírat

Get notified when there's activity on this post

This question has been flagged
updateloadingOdoo13.0odoo13.0moduleupdate
1 Odpovědět
5072 Zobrazení
Avatar
syahril asidiq firdaus

Hi everyone, 

i have a problem in my module that has over 600.000 datas in the database.

let's say that i have a field like this and it works well (before update) : 

distance_string = fields.Char(string='Distance', compute='_compute_range')

now i need to update that field to become like this  and : 

distance_string = fields.Char(string='Distance', compute='_compute_range', store=True) outside_range= fields.Selection([('no','no'),('yes','Yes')], string="Out of Range", default='no')

it will also work well if i update in the module that has less data. I think there's no problem with my code. The problem is why do i take so much loading time to update this module and it's never end. Can anyone suggest me how to fix it? because i really need to set store=True in that computed field


nb:  forget bout that stored computed field. this module still take never ends loading even if i just add a new field with the default values. i think the problem is from the how much the datas in my module before i update 

0
Avatar
Zrušit
Avatar
Fady Noor Ilmi Lubis
Nejlepší odpověď

i know how you feel bro. i was once in your position too.

default values and compute store will give same impact on existing data: update all data to assign the value.

you should try these options:

a. do the update in a system with better computation performance like on the cloud: restore your DB, upgrade the module there, once it finishes backup the DB and restore it back to your local, or

b. change the query into SQL, because ORM is really exhausting your resource and SQL will be much faster

c. upgrade the module to just give the field, use export-import to fill the field for existing data, then add compute to your field with logic "if the field is not empty, than skip for that record". by doing this, your compute field will only taking effect to new datas

1
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Unable to Download Multiple Invoice at once
update Odoo13.0 pdfreport
Avatar
0
úno 22
2872
Where did the type column go from ir_actions_todo?
type Odoo13.0 odoo13.0
Avatar
0
dub 21
2605
Odoo 13 installation won't let me tick the PostgreSQL and 500 internal server error
odoo Odoo13.0 odoo13.0
Avatar
1
zář 20
5815
Update values of treeview when clic on a button Vyřešeno
treeview update Odoo13.0
Avatar
Avatar
1
led 20
6526
TypeError: Cannot read property 'bind' of undefined Vyřešeno
Odoo13.0 odoo13.0 odoo13 odoo13CE
Avatar
Avatar
Avatar
5
zář 21
21684
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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