Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Is it possible to display delivery address on project task?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
projectv7taskshipping
1 Rispondi
6210 Visualizzazioni
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
Abbandona
Avatar
Davide Corio
Risposta migliore

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
Abbandona
Rebel
Autore

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
Autore

[[ 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
Autore

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
Autore

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
Autore

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

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How can we block the editing of planned hours in a task
project v7 task
Avatar
Avatar
Avatar
3
lug 18
6638
How to export tasks (from project management)
project management v7 task
Avatar
2
ago 20
10017
Report Designer: field date showing time w/o timezone (wrong hour)
project timezone v7 task
Avatar
1
mar 15
6687
Problem with adding a timesheet line in a task
project v7 timesheet task
Avatar
0
mar 15
7520
[meta] Why isn't the OpenERP project driven on OpenERP ?
project v7 task issue
Avatar
Avatar
1
mar 15
5282
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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