Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

Edit the qweb template with a custom modul.

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
v8qwebreport
3 Replies
18851 Rodiniai
Portretas
Artur Bertram

Could anybody tell me how to edit the qweb templat for the purchase order with a custom modul. I already tried it, but it doesent work and no error is given. If I add an id to the template it even shows under the associated QWeb views of Purchase Order.

__openerp__.py

{
    'name': 'report test',
    'version': '1.0',
    'category': 'test',
    'summary': 'test',
    'description': """
    test
    """,
    'author': 'test',
    'website': 'test',
    'depends': ['sales_team','account_voucher', 'procurement', 'report'],
    'data': [
        'views/report_purchase_extend.xml',
    ],
    'demo': [],
    'installable': True,
    'auto_install': False,
    'application': True,
}

views/report_purchase_extend.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template>
    <tr t-extend="purchase.report_purchaseorder">
        <t t-jquery="div.page" t-operation="replace">
                <t t-foreach="docs" t-as="o"/>
            <div class ="page">
            </div>
        </t>
    </tr>
</template>
</data>
</openerp>

and an empty __init__.py file.

1
Portretas
Atmesti
Alex

I have the same problem. No install error but nothing changes in template. Take a look to my post too, because maybe someone could give us a solution there. https://www.odoo.com/forum/Help-1/question/Inherit-Qweb-54163

Portretas
Artur Bertram
Autorius Best Answer

I solved it with the following code.

__openerp__.py

{
    'name': 'report test',
    'version': '1.0',
    'category': 'test',
    'summary': 'test',
    'description': """
    test
    """,
    'author': 'test',
    'website': 'test',
    'depends': ['base_setup', 'purchase', 'report'],
    'data': [
        'views/report_purchase_extend.xml',
    ],
    'demo': [],
    'installable': True,
    'auto_install': False,
    'application': True,
}

views/report_purchase_extend.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <template id="report_purchaseorder_extend" inherit_id="purchase.report_purchaseorder">
            <xpath expr="//div[@class='page']" position="replace">
                <div class ="page">
                </div>
            </xpath>
        </template>
    </data>
</openerp>

and an empty __init__.py file.

0
Portretas
Atmesti
Portretas
Vũ Quốc Hoàng
Best Answer

I think you need to inherit the menu which contains the link to the report. 

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <report 
            id="report_sale_order"
            string="Quotation / Order"
            model="sale.order" 
            report_type="qweb-pdf"
            file="sale.report_saleorder" 
            name="sale.report_saleorder" 
        />
    </data>
</openerp>

 

0
Portretas
Atmesti
Portretas
Peter Nietz
Best Answer

Hi, try this:

<templates>
    <tr t-extend="purchase.report_purchaseorder">
        <t t-jquery=".page" t-operation="replace">
             <t t-foreach="docs" t-as="o"/>
            <div class ="page">

                <span id="change_test"/>
            </div>
        </t>
    </tr>
</templates>

if you can see the id change_test in fe. firebug the template is changed ... but I experience some strange behavior that also the template from which I inherit is changed -- so where is the use of inheritance here if everything is changed?

0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Related Posts Replies Rodiniai Veikla
Create QWeb reports from Odoo application
v8 qweb report
Portretas
0
gruod. 15
5106
Transfer the sum of all order lines of one page to the next page.
v8 qweb report
Portretas
0
kov. 15
3944
Set report orientation Solved
v8 qweb report
Portretas
Portretas
1
kov. 15
15054
Inherit Qweb Solved
v8 qweb inherit report
Portretas
Portretas
Portretas
Portretas
4
vas. 24
49703
How do you use variables in a Qweb loop? Solved
v8 qweb report loop
Portretas
Portretas
Portretas
Portretas
Portretas
11
bal. 23
94508
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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