Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Guest House
    • Distributeur de boissons
    • Hotel
    Real Estate
    • Real Estate Agency
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consulting
    • Accounting Firm
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Solar Energy Systems
    • Cordonnier
    • Services de nettoyage
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Fault upon creating 2 planning Lines to a project

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
projectplanning
1 Répondre
2694 Vues
Avatar
Piet Van Haute

I've added a link between the project application and the planning application. 


 

If only one line is added, this seems to be working fine. (The line also appears in the planning application and can be processed there. 


However, if a second planning line is added, the system creates an error: 

 

What would be the reason for this? 
In this workflow it is crucial that multiple resouces, or multiple dates can be allocated to a project. 

Error message: 

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/models.py", line 5849, in ensure_one

    _id, = self._ids

ValueError: too many values to unpack (expected 1)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 1770, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying

    result = func()

  File "/home/odoo/src/odoo/odoo/http.py", line 1797, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/home/odoo/src/odoo/odoo/http.py", line 2001, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 235, in _dispatch

    response = super()._dispatch(endpoint)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch

    result = endpoint(**request.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 725, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 24, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/home/odoo/src/odoo/addons/web/models/models.py", line 76, in web_save

    return self.with_context(bin_size=True).web_read(specification)

  File "/home/odoo/src/odoo/addons/web/models/models.py", line 163, in web_read

    for vals in co_records.web_read(field_spec['fields'])

  File "/home/odoo/src/odoo/addons/web/models/models.py", line 86, in web_read

    values_list: List[Dict] = self.read(fields_to_read, load=None)

  File "/home/odoo/src/odoo/odoo/models.py", line 3540, in read

    return self._read_format(fnames=fields, load=load)

  File "/home/odoo/src/odoo/odoo/models.py", line 3751, in _read_format

    vals[name] = convert(record[name], record, use_display_name)

  File "/home/odoo/src/odoo/odoo/models.py", line 6631, in __getitem__

    return self._fields[key].__get__(self, self.env.registry[self._name])

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

    return super().__get__(records, owner)

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

    self.compute_value(recs)

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

    records._compute_field_value(self)

  File "/home/odoo/src/odoo/odoo/models.py", line 4875, in _compute_field_value

    fields.determine(field.compute, self)

  File "/home/odoo/src/odoo/odoo/fields.py", line 102, in determine

    return needle(*args)

  File "/home/odoo/src/enterprise/sale_planning/models/planning_slot.py", line 91, in _compute_template_autocomplete_ids

    super(PlanningSlot, planned_slots)._compute_template_autocomplete_ids()

  File "/home/odoo/src/enterprise/project_forecast/models/project_forecast.py", line 69, in _compute_template_autocomplete_ids

    super(PlanningShift, self)._compute_template_autocomplete_ids()

  File "/home/odoo/src/enterprise/planning/models/planning.py", line 425, in _compute_template_autocomplete_ids

    domain = self._get_domain_template_slots()

  File "/home/odoo/src/enterprise/sale_planning/models/planning_slot.py", line 199, in _get_domain_template_slots

    domain = super()._get_domain_template_slots()

  File "/home/odoo/src/enterprise/project_forecast/models/project_forecast.py", line 62, in _get_domain_template_slots

    domain = super(PlanningShift, self)._get_domain_template_slots()

  File "/home/odoo/src/enterprise/planning/models/planning.py", line 415, in _get_domain_template_slots

    if self.resource_type == 'material':

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

    record.ensure_one()

  File "/home/odoo/src/odoo/odoo/models.py", line 5852, in ensure_one

    raise ValueError("Expected singleton: %s" % self)

ValueError: Expected singleton: planning.slot(62, 59)


The above server error caused the following client error:

RPC_ERROR://dataforge-epdm-solutions.odoo.com/web/assets/4870a9f/web.assets_web.min.js:2871:163)

    at XMLHttpRequest. (https://dataforge-epdm-solutions.odoo.com/web/assets/4870a9f/web.assets_web.min.js:2875:13)

0
Avatar
Ignorer
Avatar
Nicolas M
Meilleure réponse

Hi! Were you able to solve this?
I recently got the same issue for the same reason.

Thank you!

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to display project name instead of role on Planning Gantt view?
project planning
Avatar
Avatar
2
sept. 25
1058
Odoo 16 planning module versus projet planning
project planning
Avatar
Avatar
1
mars 23
3671
Planning only on weekday, no weekends. Résolu
project planning
Avatar
Avatar
1
nov. 21
3541
V12 How to create automatically an invoice at milestone completion for a project ? Résolu
project invoicing planning
Avatar
Avatar
1
sept. 24
4919
Express planned time on projects as percentages
project planning team
Avatar
0
mars 15
4532
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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