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
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • 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
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • 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

Is it possible to display delivery address on project task?

S'inscrire

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

Cette question a été signalée
projectv7taskshipping
1 Répondre
6211 Vues
Avatar
Rebel

Is it possible to display the delivery address in the project task form? I want to use this field on the printed report. Or can I use this field in the report editor without adding the field in the form?

I want to display partner_shipping_id.name from the sale.order table. The default partner_shipping_id from res.partner is not always correct. The project_task table does not have a sale_order_id, but does have a sale_line_id. This sale_line_id is linked to the id field of the tabel sale_order_line, but this table does not contain the partner_shipping_id.

How can I add the partner_shipping_id to the sale_order_line table, or what is the best solution to display the partner_shipping_id field (from sale.order) in the project.task table/form/print? (either is fine, as I can then use it in the report designer)

0
Avatar
Ignorer
Avatar
Davide Corio
Meilleure réponse

Since the sale order line is linked to its sale order via the order_id field, you can do:

o.sale_line_id.order_id.partner_shipping_id
1
Avatar
Ignorer
Rebel
Auteur

That sounds logical but when I use [[ o.sale_line_id.order_id.partner_shipping_id ]] or [[ o.sale_line_id.order_id.partner_shipping_id.name ]] it just shows up blank. I am using this in a custom report, I edited the .sxw file overwrote the .rml file and deinstalled the module. Updated module list and reinstalled, and the places where I added these fields it shows nothing.

Rebel
Auteur

[[ o.sale_line_id.order_id.partner_shipping_id.street ]] [[ o.sale_line_id.order_id.partner_shipping_id.city]] and [[ o.sale_line_id.order_id.partner_shipping_id.zip]] don't work either sadly

Rebel
Auteur

Do I need to import sale.order or res.parter in the __init__.py of my module? Right now it's just importing the report.

Davide Corio

of course, partner_shipping_id refers to an object. you'll need to specify the correct field you want to display. on v7 i think there's a field that sum up all the address infos at once, but i cannot remember the field name.

Rebel
Auteur

How do I specify the correct field if not like: [[ o.sale_line_id.order_id.partner_shipping_id.street ]] ? What do I add after the partner_shipping_id to refer to street, city or zip? I don't mind them being in three separate fields, I can just add the code after each other to display it on one line. Unless I can not specify these single fields?

Davide Corio

that should work. i suggest to inspect and check the address via pdb

Rebel
Auteur

Oddly only [[ display_address(o.sale_line_id.order_id.partner_shipping_id) ]] seemed to work, but thanks for your feedback and pushing me in the right direction. Couldn't have done it without you, appreciate you taking the time. :)

Davide Corio

display_address is what i couldn't remember :) nice you made it

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 can we block the editing of planned hours in a task
project v7 task
Avatar
Avatar
Avatar
3
juil. 18
6638
How to export tasks (from project management)
project management v7 task
Avatar
2
août 20
10017
Report Designer: field date showing time w/o timezone (wrong hour)
project timezone v7 task
Avatar
1
mars 15
6688
Problem with adding a timesheet line in a task
project v7 timesheet task
Avatar
0
mars 15
7520
[meta] Why isn't the OpenERP project driven on OpenERP ?
project v7 task issue
Avatar
Avatar
1
mars 15
5282
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