Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

in my odoo log

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
2 Răspunsuri
1818 Vizualizări
Imagine profil
wawan

py.warnings: /home/odoo/odoo/odoo/modules/registry.py:376: UserWarning: res.partner: inconsistent 'store' for computed fields, accessing latest_followup_date, latest_followup_level_id may recompute and update latest_followup_level_id_without_lit. Use distinct compute methods for stored and non-stored fields.

  File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap

    self._bootstrap_inner()

  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    self.run()

  File "/usr/lib/python3.10/threading.py", line 953, in run

    self._target(*self._args, **self._kwargs)

  File "/home/odoo/odoo/odoo/service/server.py", line 1115, in _runloop

    self.process_work()

  File "/home/odoo/odoo/odoo/service/server.py", line 1206, in process_work

    base.models.ir_cron.ir_cron._process_jobs(db_name)

  File "/home/odoo/odoo/odoo/addons/base/models/ir_cron.py", line 126, in _process_jobs

    registry[cls._name]._process_job(db, cron_cr, job)

  File "/home/odoo/odoo/odoo/addons/base/models/ir_cron.py", line 312, in _process_job

    now = fields.Datetime.context_timestamp(ir_cron, datetime.utcnow())

  File "/home/odoo/odoo/odoo/fields.py", line 2247, in context_timestamp

    tz_name = record._context.get('tz') or record.env.user.tz

  File "/home/odoo/odoo/odoo/fields.py", line 1207, in __get__

    self.compute_value(recs)

  File "/home/odoo/odoo/odoo/fields.py", line 1376, in compute_value

    fields = records.pool.field_computed[self]

  File "/home/odoo/odoo/odoo/tools/func.py", line 28, in __get__

    value = self.fget(obj)

  File "/home/odoo/odoo/odoo/modules/registry.py", line 376, in field_computed

    warnings.warn(

 

2024-03-30 01:16:05,205 15309 INFO my_DB odoo.addons.base.models.ir_cron: Starting job `Mail: Email Queue Manager`. 

2024-03-30 01:16:16,443 13483 INFO my_DB werkzeug: 127.0.0.1 - - [30/Mar/2024 01:16:16] "GET /websocket HTTP/1.0" 400 - 1 0.000 0.002

2024-03-30 01:16:31,057 13483 INFO my_DB werkzeug: 127.0.0.1 - - [30/Mar/2024 01:16:31] "GET /websocket HTTP/1.0" 400 - 1 0.000 0.003

2024-03-30 01:16:56,483 936 ERROR my_DB odoo.service.server: WorkerCron (15309) timeout after 120s 

2024-03-30 01:16:56,497 15350 INFO my_DB odoo.service.server: Worker WorkerCron (15350) alive 

2024-03-30 01:16:56,855 15333 WARNING my_DB py.warnings: /home/odoo/odoo/odoo/modules/registry.py:376: UserWarning: res.partner: inconsistent 'store' for computed fields, accessing latest_followup_date, latest_followup_level_id may recompute and update latest_followup_level_id_without_lit. Use distinct compute methods for stored and non-stored fields.

  File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap

    self._bootstrap_inner()

  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    self.run()

  File "/usr/lib/python3.10/threading.py", line 953, in run

    self._target(*self._args, **self._kwargs)

  File "/home/odoo/odoo/odoo/service/server.py", line 1115, in _runloop

    self.process_work()

  File "/home/odoo/odoo/odoo/service/server.py", line 1206, in process_work

    base.models.ir_cron.ir_cron._process_jobs(db_name)

  File "/home/odoo/odoo/odoo/addons/base/models/ir_cron.py", line 126, in _process_jobs

    registry[cls._name]._process_job(db, cron_cr, job)

  File "/home/odoo/odoo/odoo/addons/base/models/ir_cron.py", line 312, in _process_job

    now = fields.Datetime.context_timestamp(ir_cron, datetime.utcnow())

  File "/home/odoo/odoo/odoo/fields.py", line 2247, in context_timestamp

    tz_name = record._context.get('tz') or record.env.user.tz

  File "/home/odoo/odoo/odoo/fields.py", line 1207, in __get__

    self.compute_value(recs)

  File "/home/odoo/odoo/odoo/fields.py", line 1376, in compute_value

    fields = records.pool.field_computed[self]

  File "/home/odoo/odoo/odoo/tools/func.py", line 28, in __get__

    value = self.fget(obj)

  File "/home/odoo/odoo/odoo/modules/registry.py", line 376, in field_computed

    warnings.warn(


Is this a sign of a problem in Odoo? Please help to fix it if that's a problem

0
Imagine profil
Abandonează
Imagine profil
Axel Manzanilla
Cel mai bun răspuns

Hello Wawan,

The error arises when you use the same method to compute multiple fields and one or more of those fields are set as stored, as in the following code:

from odoo import api, fields, models


class ResPartner(models.Model):
_inherit = 'res.partner'

field_one = fields.Integer(compute='_compute_fields', store=True)
field_two = fields.Integer(compute='_compute_fields')
field_three = fields.Integer(compute='_compute_fields')

def _compute_fields(self):
field_one = 1
field_two = 2
field_three = 3

The issue with setting it as store=True is that when the values of field_two and field_three are computed, it can trigger the recomputation of field_one. I recommend creating a new method for the field latest_followup_level_id_without_lit.

1
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,

It seems like you're encountering a UserWarning related to computed fields in Odoo. The warning message suggests that there might be an inconsistency in how the store attribute is defined for computed fields
If you have computed fields, both store and non-store data, make sure you have separate compute methods for each. Computed fields that store data (store=True) should have their own compute method, and computed fields that do not store data (store=False) should have a different compute method.


Hope it helps

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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