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

Problem with wizard on tree view on odoo10.

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
wizardviewsmodulesodoo10
2 Replies
6042 Tampilan
Avatar
wizardz

hi,

I want to open a wizard, a new form when I click on this button in my purchase.order tree view:


  My Code looks like this: 

<button name="this_test" string="test Button" type="object"/> 


<record id="purchase_order_addon_form" model="ir.ui.view"> <field name="name">purchase.order.addon.form</field> <field name="model">purchase.order</field>  <field name="arch" type="xml"> <form string="testing"> <sheet> <div class="oe_title"> <h1> <!--<field name="name" readonly="1"/>--> </h1> </div>  </sheet>

</form> </field> </record>

@api.multi def this_test(self): view_id = self.env.ref('my_module.purchase_order_addon_form').id context = self._context.copy() return { 'name':'test123', 'view_type':'form', 'view_mode':'form', 'views' : [(view_id,'form')], 'res_model':'purchase.order', 'view_id':view_id, 'type':'ir.actions.act_window', 'res_id':self.id, 'target':'new', 'context':context, }

Now when I click the button, the wizard popups with my designed xml view.

My problem is, when I click not on the button, but on the record, the same view is called, and I don't understand why...

Do I need a new model for that, or is that another way to handle this issue?


Thank you

0
Avatar
Buang
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Jawaban Terbai

You just need to change the "priority" of your custom form view.

EX:

<record id="test_id" model="ir.ui.view">
<field name="model">my.test.model</field>
<field name="name">test.form</field>
<field name="priority">100</field>
</record>

It is a priority for the views. Lower the number means higher the priority (priority 1 is higher than priority 10).

If there action is not bind to any view(s), system will automatically bind the views that has high priority.

Hope this will help you.

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com  website: http://www.erpharbor.com
5
Avatar
Buang
wizardz
Penulis

thank you, I have fixed the issue with this: <field name="priority">100</field>

what is the meaning of priority in the views?

Sudhir Arya (ERP Harbor Consulting Services)

It is a priority for the views. Lower the number means higher the priority (priority 1 is higher than priority 10).

If there action is not bind to any view(s), system will automatically bind the views that has high priority.

Please accept the answer if it has solved your issue so that others can take it's reference.

Sudhir Arya (ERP Harbor Consulting Services)

It is a priority for the views. Lower the number means higher the priority (priority 1 is higher than priority 10).

If there action is not bind to any view(s), system will automatically bind the views that has high priority.

Avatar
Hilar Andikkadavath
Jawaban Terbai

Try to bind your action with the form view like this.

<record id="ir_action_window_view2" model="ir.actions.act_window.view">
<field eval="2" name="sequence"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_window_action_form"/>
<field name="act_window_id" ref="ir_action_window"/>
</record>

Here replace the act_window_id with your action and view_id with your custom model. If this donts works then kindly comment your queries here.

2
Avatar
Buang
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
Update Wizard without closing it after button click
wizard odoo10
Avatar
0
Okt 23
2519
odoo 10 : form for picking with only one field
views odoo10
Avatar
Avatar
Avatar
2
Des 19
3802
How to hide fields in the create and edit popup view?
views odoo10
Avatar
0
Nov 18
3933
How to save the values of fields ?
wizard odoo10
Avatar
Avatar
Avatar
4
Okt 18
9363
Is it possible to create a new record with wizard? Diselesaikan
wizard odoo10
Avatar
Avatar
Avatar
3
Jun 18
7697
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