Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

how to add pages to notebook that is being added from another module Odoo15

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
viewsformv15
2 Replies
6723 Tampilan
Avatar
Josef Schmid

I am extending the standard event.booth module with my custom module. I am trying to add pages to the "Registrations" Notebook the event.booth form has. Unfortunately tho, i cant select the existing notebook with xpath because it also gets added through a second module (called event_booth_sale).

Here are my attempts

<record id="view_booth_form_inherit" model="ir.ui.view">
<field name="name">event.booth.inheritfield>
<
field name="model">event.boothfield>
<
field name="inherit_id" ref="event_booth.event_booth_view_form_from_event">field>
<
field name="priority">20field>
<
field name="arch" type="xml">
<xpath expr="//sheet" position="inside">
<notebook>
<page string="Allgemein">
<group>
...

group>

page>
<
page string="Wände">
<group col="4">
...
group>
page>
notebook>
xpath>
<
xpath expr="//sheet" position="inside">
<field name="plan" widget="image"/>
xpath>
field>
record>

This also doesnt work:

<record id="view_booth_form_inherit" model="ir.ui.view">
<field name="name">event.booth.inheritfield>
<
field name="model">event.boothfield>
<
field name="inherit_id" ref="event_booth.event_booth_view_form_from_event">field>
<
field name="priority">20field>
<
field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page string="Allgemein">
<group>
...

group>

page>
<
page string="Wände">
<group col="4">
...

group>
page>
notebook>
xpath>
field>
record>

This is almost always the result:


As you can see, there are two notebooks instead of one. I dont know what to do in order to combine them.

I also tried adding 

groups="base.group_no_one"

to the notebook, same results.

Does anyone know how to do this?


0
Avatar
Buang
Avatar
Kiran K
Jawaban Terbai

Hi  ​Josef,

Try inheriting 'event_booth_sale.event_booth_view_form_from_event'

<record id="event_booth_view_form_from_event_add_page" model="ir.ui.view">
<field name="name">event.booth.view.form.inherit.notebookfield>
<
field name="model">event.boothfield>
<
field name="inherit_id" ref="event_booth_sale.event_booth_view_form_from_event"/>
<
field name="priority">5field>
<
field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="your_page_name" string="your_page_string">

page>
xpath>
field>
record>

 And add 'event_booth_sale' in depends on your custom modules manifest file.


Hope it helps,
Kiran K

1
Avatar
Buang
Avatar
Eauzon
Jawaban Terbai

You should be able to target the existing notebook using xpath if it is there ..

//notebook[@id='registration']

Did you add the event_booth_sale module that introduces the notebook as a dependency to your new module ?

1
Avatar
Buang
Josef Schmid
Penulis

Unfortunately I get this error:
Element '<xpath expr="//notebook[@id=&#39;registration&#39;]">' kann nicht in der übergeordneten Ansicht lokalisiert werden

which translates to the given xpath could not be found in its parent view.

I did add event_booth_sale to the depends key in the manifest.
Thank you for your comment.

Eauzon

IN your second example change the inherit_id to :

event_booth_sale.event_booth_view_form_from_event

That is the one that has the notebook

Josef Schmid
Penulis

Inheriting from event_booth_sale solved the problem! Thank you Jaco Waes!

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Displaying different views in different contexts Diselesaikan
views form v15
Avatar
Avatar
1
Jul 22
5477
How to make a <tree> view that is editable="bottom" but also has a clickable link to the object? Diselesaikan
views v15
Avatar
Avatar
Avatar
2
Mar 23
17406
Display model creation view of another model
views form
Avatar
Avatar
2
Feb 23
2620
Why is my custom form view not being read by Odoo?
views form
Avatar
Avatar
2
Sep 15
6448
When inherit view original view also changed ?
views form
Avatar
Avatar
1
Mar 15
4618
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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