Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How can I add the shipping address to invoice report?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
invoicev7reportshipping
2 Antwoorden
12328 Weergaven
Avatar
Erick Dyck

Hey guys,

i have a problem with adding the shipping/delivery address from the sale_order to the invoice report. I already saw this post (link below) and edited the files as descripted, but it doesn't worked for me. Can someone please help me? I use openERP version 7. Best regards

Dyck

Link: help.openerp.com/question/10304/how-can-i-display-the-delivery-address-on-the-invoice

0
Avatar
Annuleer
le_dilem

Hi, have you check in settings/sales/ check Allow a different address for delivery and invoicing.

Erick Dyck
Auteur

Yes, this option is checked.

le_dilem

the delivery address is indicated on the order, no use to put in the invoice.

Avatar
kaynis
Beste antwoord

You can create a module that inherits invoice and add the shipping address field to the invoice this way. After, you can edit the print out from invoice with Open Office report editor to include the field you just added. That should do it

        'deli_add': fields.many2one('res.partner.address', 'Delivery Address', select=True) add this to the columns of python code

and add to the form view of the module you want this field to show just after the invoice address field

        <field name="deli_add" />

this will give you your field and you will be able to select the shipping address but it will not auto fill when you select a client name. This should give you an idea of what you need to do.

0
Avatar
Annuleer
kaynis

Remember you have to reload the server when you make changes to .py files and upgrade when you make changes to the xml files for new changes to take effect

Erick Dyck
Auteur

Many thanks to you, that looks right :D I will check it tomorrow when I'm at work. Maybe it's the xml file, I forgot them. I will post tomorrow if it works or not.

Avatar
Erick Dyck
Auteur Beste antwoord

I skipped the step to create a module and edited for testing the file addons/account/account_invoice.py. There I added this piece of code:

'partner_shipping_id': fields.many2one('res.partner', 'Delivery Address'),

Then I added following line in the account_print_invoice.rml:

<para style="tableAngebotContent">[[ display_address(o.partner_shipping_id) or 'No delivery address' ]]</para>

Now it's funny. Neither the street of the shipping address nor the text 'No delivery address' are visible. Is the code wrong or did I forgot something? Best regards

Dyck

0
Avatar
Annuleer
kaynis

this is a very wrong move because if you mess up a base module the application may not open properly anymore. would advise to build a module with inherited invoice view and add you field there. You have to understand that there is an on_change function on the address in the python code and you need to add the shipping address to be affected by this function. Thus, the on_change function of address in invoice module should also change the shipping address which will also affect the view. This is why it is better to create a module of your own to incorporate all this

Erick Dyck
Auteur

I know it's not good to edit base modules. How I already wrote, only for testing. The openERP is installed on a developmentserver, so if it crashes, who cares ;). For me, it's important to know, what is wrong with the code above. When I get it to work, then we do it the "clean way". But thanks for your answer.

kaynis

Ok then. Firstly, I believe you need to make changes to the _view.xml file to make your field visible in a module on webclient. The xml file manages the view. If your field is not declared in the xml then you will not see it eg <field name="name" position="after"> <field name="partner_shipping_id"/></field> or something like that need to be somewhere in the xml form view. That determine where the field is displayed since you said you cannot see your field

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
[18.0] invoice report looks OK when previewing but fonts scaled up and sections overlap when printed Opgelost
invoice report
Avatar
Avatar
Avatar
2
jun. 25
3222
Group Invoice Lines by Sales Order
invoice report
Avatar
Avatar
Avatar
Avatar
Avatar
4
mei 24
6901
Display report only in form view?
v7 report
Avatar
Avatar
1
jan. 24
5450
Issue with header & footer of the invoice
invoice report
Avatar
Avatar
1
mei 23
4680
Invoice report error
invoice report
Avatar
0
jul. 17
3683
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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