İç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

I am trying to inherit a <templates id="template" xml:space="preserve"> template, but that ate my last full week.

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
inheritanceqwebodoo12
1 Cevapla
13222 Görünümler
Avatar
Banita Elena Denisa

Hi there,

Am trying to inherit a <templates id="template" xml:space="preserve">, but no succedd in almost a full week. What was fun to learn, bcamed a nightmare, just bcause of this, so far.
I have done the following come (below). Can someone pleeeeaaassseee, have a look and let me know what am I doing wrong?

I want to inherit the SEO widget. to add a new field, but for a full week I couldn't touch that popup window. It's on odoo 12.

 So,

- I have added the js file (ad_jas.xml)

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="inherit_seo" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/fk_website_seo/static/js/extend_seo_widget.js"></script>
</xpath>
</template>
</odoo>

- the content of the js file (extend_seo_widget.js)

odoo.define('fk_website_seo.extend_seo_widget', function (require) {
'use strict';

var core = require('web.core');
var ajax = require('web.ajax');
var qweb = core.qweb;
ajax.loadXML('/fk_website_seo/static/src/xml/extend_seo_widget.xml', qweb);
});

- added the xml extension to manifest as qweb

'qweb': [
'static/src/xml/extend_seo_widget.xml'
],
'data': [
    'views/add_jas.xml',
],

- and tried to inherit the SEO widget, with extend_seo_widget.xml

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<templates id="template" xml:space="preserve">
<t t-name="website.seo_preview" t-extend="website.seo_preview">
<t t-jquery=".oe_seo_preview_g" t-operation="after">
<h1>TEST TEST TEST TSET</h1>
<label for="test">Frequency</label>
<field name="test"/>
</t>
</t>
</templates>
</odoo>

- and inherited the website.seo.metadata model, as follow

class inheritedSEOwidget(models.Model):
# this website.seo.metadata is an Abstract model, andthe only way I could inherited it it was using models.Model...
_inherit = 'website.seo.metadata'
_name = "extended.website.seo.metadata"

test = fields.Char(string="Test")

I'm not getting any errors, but still nothing changed there.

that is driving me crazy.

Can you have a look pls?

What am I doing wrong? Google it a lot, and tested everything I got..nothing worked o far.

pls and thank you

0
Avatar
Vazgeç
Avatar
Eman Abdulmalik
En İyi Yanıt

Hello Banita,

Please remove the odoo tag and it work perfectly.

<?xml version="1.0" encoding="utf-8"?>
 
<templates id="template" xml:space="preserve">
<t t-name="website.seo_preview" t-extend="website.seo_preview">
<t t-jquery=".oe_seo_preview_g" t-operation="after">
<h1>TEST TEST TEST TSET</h1>
<label for="test">Frequency</label>
<field name="test"/>
</t>
</t>
</templates>

1
Avatar
Vazgeç
Banita Elena Denisa
Üretici

Hi Eman,

Thank you for your answer!

I tried your solution and removed odoo tags but unfortunatelly when trying to upgrade I'm getting a "debug=true" (http://localhost:8070/web?debug=true) link and nothing changes.

Beside that nothing in the backend is not loading bcause of the template issue i suppose.

Am I missing something? :((

If it's working for you, and for me is not working... there is something I miss, but the code is the same. What am I missing ... do you have a clue? I checked everything a hundread times...so my eyes is missing something :((

Banita Elena Denisa
Üretici

ok, so, removed the odoo tags and used <template instead of <templates tags.... and now the backend is back and running, but still no changes in the extended template. it's seems that is having no effect at all.

is this working for ODOO 12? On my research I have found that working only on odoo10.

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
Qweb: Inherit <report> tag and include "paperformat" atribute Çözüldü
inheritance qweb report odoo12
Avatar
Avatar
1
May 20
4512
Override and Change the middle of a function Çözüldü
inheritance odoo12
Avatar
Avatar
Avatar
Avatar
7
Haz 24
26138
How to modify a qweb template? Çözüldü
inheritance qweb
Avatar
Avatar
2
Ara 22
24049
Sort order for dropdown list of Many2one field
qweb odoo12
Avatar
Avatar
Avatar
2
Eki 22
6392
How to insert image in odoo 12 Docker qweb report
qweb odoo12
Avatar
Avatar
Avatar
2
Mar 21
4569
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