İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Edit the qweb template with a custom modul.

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
v8qwebreport
3 Cevaplar
18803 Görünümler
Avatar
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
Avatar
Vazgeç
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

Avatar
Artur Bertram
Üretici En İyi Yanıt

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
Avatar
Vazgeç
Avatar
Vũ Quốc Hoàng
En İyi Yanıt

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
Avatar
Vazgeç
Avatar
Peter Nietz
En İyi Yanıt

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
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Create QWeb reports from Odoo application
v8 qweb report
Avatar
0
Ara 15
5077
Transfer the sum of all order lines of one page to the next page.
v8 qweb report
Avatar
0
Mar 15
3911
Set report orientation Çözüldü
v8 qweb report
Avatar
Avatar
1
Mar 15
15021
Inherit Qweb Çözüldü
v8 qweb inherit report
Avatar
Avatar
Avatar
Avatar
4
Şub 24
49641
How do you use variables in a Qweb loop? Çözüldü
v8 qweb report loop
Avatar
Avatar
Avatar
Avatar
Avatar
11
Nis 23
94453
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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