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-profit organisatie
    • 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 inherit pro forma invoice in odoo17?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
invoiceqwebtemplatesreportsproformaodoo
2 Antwoorden
1295 Weergaven
Avatar
Kalana Piyumantha

I want to do this activity, before doing that i need background analysis, because  I am a beginner, This is the activity,

Qweb Report

  1. Inherit Pro-forma invoice Report.
  2. Use a custom paper format: A4 size, landscape orientation, with 20mm margins.
  3. Use a shared/common layout template that includes:
  • Company logo at the top center.
  • Report title in bold.
  • Footer with the page number and printed date.

Customize report

    • Should apply created custom layout(point 3)
    • Show product image in order lines
    • Show discount in order lines
    • Add table border

My questions are?
1)What are the required files to complete this activity?

2)If Python files are not required , why? How can i find this related python file in  core?

3)How these required files connect to each files? 

4)Background of this question (purpose) can someone help me? I want to simple answers to these questions

0
Avatar
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

You can create a custom paper format through the UI or by using code. The page number is already shown in the report by default. To display the printed date, you need to create a custom layout. A Python file is not required, as the report is connected to the model through the report action using the binding ID, which allows you to access all data from that model.


1. Custom Paper Format

Settings-> Technical-> reporting-> Paper Formats.


- Landscape orientation can be set using the Orientation field

- Choose Pro-forma Invoice in the Associated Reports field.

- You can set the top, bottom, left, and right margins as needed.


2. Custom Layout 

Sample custom layout

<template id="report_custom_external_layout">
<!-- Multicompany -->
<t t-if="not o and doc">
<t t-set="o" t-value="doc"/>
</t>
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<div class="header">
<div class="row">
<img t-if="company.custom_report_header"
t-att-src="image_data_uri(company.custom_report_header)"
alt="Logo" width="100%"/>
</div>
</div>
<div class="footer o_standard_footer" style="position: relative;">
<div style="width: 100%;">
<div class="row"
style="display: -webkit-box; display: flex; -webkit-justify-content: space-between; justify-content: space-between; width: 100%;">
<div class="col-4 text-center" style="font-size: 10px;">
<span t-esc="time.strftime('%Y-%m-%d')"/>-
<span t-esc="time.strftime('%H:%M')"/>
</div>
<div class="col-4 text-center" style="font-size: 10px;">
<span>Page</span>
<span class="page"/>/
<span class="topage"/>
</div>
</div>
</div>
<div style="width: 100%;">
<img t-if="company.custom_report_footer"
t-att-src="image_data_uri(company.custom_report_footer)"
alt="Logo" width="100%"/>
</div>
</div>
<div class="article o_report_layout_standard"
t-att-data-oe-model="o and o._name"
t-att-data-oe-id="o and o.id"
t-att-data-oe-lang="o and o.env.context.get('lang')">
<t t-raw="0"/>
</div>
</template>


<div class="col-4 text-center" style="font-size: 10px;">

                    <span t-esc="time.strftime('%Y-%m-%d')"/>-

                    <span t-esc="time.strftime('%H:%M')"/>

                </div>

This code indicates - printed date and time


3. Inherit Pro-Forma Invoice 


    <template id="sale_order_report_saleorder_document"
inherit_id="sale.report_saleorder_document">
<xpath expr="//t[@t-call='web.external_layout']" position="replace">
<t t-call="module_name.report_custom_external_layout">
<!-- Details-->
</t>
</xpath>
</template>


Hope it helps.

0
Avatar
Annuleer
Avatar
Jainesh Shah(Aktiv Software)
Beste antwoord

Hello Kalana Piyumantha,

 

Please refer to the following documentation and YouTube playlist to understand how to work with PDF reports in Odoo:

 https://www.odoo.com/documentation/18.0/developer/tutorials/pdf_reports.html

 https://www.youtube.com/playlist?list=PLqRRLx0cl0hqclwqsT4cm8vkIU4NAj3uA

If you have any questions, please feel free to reach out to me. I'm happy to help!

 

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

0
Avatar
Annuleer
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
Custom Invoice Report
invoice qweb templates
Avatar
0
jan. 24
2272
Table for all recored / Qweb reoprts
qweb reports odoo
Avatar
1
apr. 23
3839
Go through a loop n times in QWEB Opgelost
qweb templates odoo
Avatar
Avatar
Avatar
Avatar
4
apr. 24
21611
Override account_invoices report to use different template Opgelost
invoice templates reports
Avatar
Avatar
2
jun. 20
6670
Invoices doesnt print correctly post migration from openerp 7 to odoo 8 Opgelost
invoice qweb reports
Avatar
Avatar
3
nov. 15
6200
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