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

[Odoo 8 CE] How can I have a custom PO view without modifying the original view as well ?

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
viewspurchase_order
4 Cevaplar
3620 Görünümler
Avatar
Paraita Wohler

I've added a second Purchase Orders view in my left-side menu. The first Purchase Orders view is the default one bundled in Odoo 8. The second Purchase Orders view should have different columns. This is the xml of the second view:

<record id="view_purchase_order_with_core_product" model="ir.ui.view">
<field
name="name">my.custom.PO.view</field>
<field
name="model">purchase.order</field>
<field
name="type">tree</field>
<field
name="priority">1</field>
<field
name="arch" type="xml">
<tree>
<field
name="product_id"/>
<field
name="message_unread"/>
</tree>
</field>
</record>

<record
id="act_purchase_order_with_core_product" model="ir.actions.act_window">
<field
name="name">Second PO view</field>
<field
name="type">ir.actions.act_window</field>
<field
name="res_model">purchase.order</field>
<field
name="view_mode">tree,form</field>
<field
name="context">{}</field>
<field
name="domain">[('has_core_articles', '=', True)]</field>
<field
name="view_id" ref="view_purchase_order_with_core_product"/>
</record>


<menuitem id="menu_purchase_order_with_core_product" name="Second PO view"
parent="purchase.menu_procurement_management"
action="act_purchase_order_with_core_product" sequence="14"/>

The purpose of that second view is to display only orders which contains certain articles, display differents columns than the original view.

I've managed to do the filter using the domain field (I didn't want to use the search filter for that).

My problem is that when I modify the columns of my second views, the original view (the first view) is also modified and display the extra columns.

What am I doing wrong ?


EDIT: I've removed the priority field but I still have the same error after upgrading my module

0
Avatar
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,

Can you remove the below line from the code and check the same:-     <field name="priority">1</field>

<record id="view_purchase_order_with_core_product" model="ir.ui.view">
<field name="name">my.custom.PO.view</field>
<field name="model">purchase.order</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree>
<field name="product_id"/>
<field name="message_unread"/>
</tree>
</field>
</record>

Thanks

1
Avatar
Vazgeç
Avatar
Paraita Wohler
Üretici En İyi Yanıt

Thanks guys for the answers, I've removed the priority field, modified the name of the view and updated the module in my Odoo instance. However I still see the product_id and the message_unread columns in both PO views instead of just the second one. The name of the second view has been impacted as expected though.

What's strange to me is that I didn't inherit the original PO view so I don't understand how my changes on my second view is even impacting the original PO view. Is the view deduced from the model itself ?

I did try to inherit from the original PO view also, but I end up with the same results: changes in my second view are impacted in the original PO view as well...


EDIT: restarting my Odoo instance + updating the installed module didn't seem to change anything but I've retried with a brand new DB and it works as expected !

To prevent myself from running from this kind of error in the future, is there a foolproof method to update an installed module without having to restart everything from a clean DB ?

0
Avatar
Vazgeç
Avatar
subbarao
En İyi Yanıt

Hello Paraita,

You have done well but the mistake is priority, so remove priority and then upgrade it will work.

<field name="priority">1</field>
0
Avatar
Vazgeç
Cybrosys Techno Solutions Pvt.Ltd

We have mentioned the same in the above answer.

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
importing Purchase Order shown as a RFQ Çözüldü
purchase_order
Avatar
Avatar
Avatar
2
May 25
3067
Create a PO without adding products to stock
purchase_order
Avatar
Avatar
Avatar
Avatar
3
Ara 24
9052
Select multiple elements with XPath Çözüldü
views
Avatar
Avatar
Avatar
Avatar
Avatar
5
Ağu 24
48621
How do I replace the default Purchase Order number? Çözüldü
purchase_order
Avatar
Avatar
1
Tem 24
4615
Purchase Product Description Incorrect Çözüldü
purchase_order
Avatar
Avatar
1
Haz 24
2853
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