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

Datetime not working in any module

Abonare

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

Această întrebare a fost marcată
datedatetimebug
3759 Vizualizări
Imagine profil
Mar

Hello, so I was trying to develop my own module - I'm new to odoo btw- and I was trying to add some constraints to the date using some python code with @ api.constraints . For example I wanted to make sure the date is not before today using datetime.now() and things were working fine then I changed my timezone on windows and odoo to test somethings then reverted back to normal. Again, things were fine then after modifying the code to make the date fit my needs, it broke all date fields on Odoo. Anything that has a date field gives me one of the following error messages even though I reverted everything back and i even deleted my module that I was developing but its still bugged

Traceback:
Error: '2021-11-30' is not a correct date
    at Object.parseDate [as date] (http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1062:7)
    at Class._parseServerValue (http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1295:384)
    at http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1544:544
    at Function._.each._.forEach (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:108:558)
    at Class._parseServerData (http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1544:157)
    at http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1589:346
    at Function._.map._.collect (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:109:270)
    at http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1589:127
    at async Class.load (http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:1293:244)
    at async Promise.all (index 0)


Traceback:
TypeError: maxDate() Could not parse date parameter: NaN
    at TempusDominusBootstrap4.maxDate (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3802:79)
    at Moment. (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3774:131)
    at Function.each (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:1437:241)
    at TempusDominusBootstrap4.options (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3774:57)
    at TempusDominusBootstrap4._int (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3733:144)
    at TempusDominusBootstrap4.DateTimePicker (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3731:573)
    at new TempusDominusBootstrap4 (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:3888:279)
    at Function._jQueryHandleThis (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:4018:16)
    at jQuery.fn.init._jQueryInterface [as datetimepicker] (http://localhost:8069/web/content/412-bfa96e2/web.assets_common.js:4020:223)
    at Class.start (http://localhost:8069/web/content/413-78121aa/web.assets_backend.js:678:1348)

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
Related Posts Răspunsuri Vizualizări Activitate
Need Studio compute code to show number of days from today vs. a date field Rezolvat
date datetime
Imagine profil
Imagine profil
2
ian. 24
3445
Adding days to a date
date datetime
Imagine profil
Imagine profil
Imagine profil
2
iun. 22
5474
How can I use date format only without time? Rezolvat
date datetime
Imagine profil
Imagine profil
2
iun. 18
6894
[SOLVED] How can I hide the time of Datetime field of a quotation (doc.date_order)? Rezolvat
date datetime
Imagine profil
Imagine profil
Imagine profil
2
nov. 16
14871
how to find number of days between two dates? Rezolvat
date datetime
Imagine profil
Imagine profil
Imagine profil
2
feb. 24
13430
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