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

hide the create option at customer_id field

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
fieldscustomoptionsodoo13.0
3 Replies
5543 Tampilan
Avatar
Computadoras y Redes Locales de Michoacán S. A. de C.V.

i read about hidding the create, and the create and Edit options at the many2one fields and i try this solution by creating a custom addon and tested adding other fields at sales:


<record id="view_crm_lead_form" model="ir.ui.view">
<field name="name">view.crm.lead.form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="replace">
<field name="partner_id" options="{'no_quick_create':True}" string="Customer" context="{'res_partner_search_mode': type == 'opportunity' and 'customer' or False, 'default_name': contact_name or partner_name,.... etc />
</xpath>
</field>
</record>

just take the original field and add the option 'no_quick_create' and replace it, where is my mistake?

0
Avatar
Buang
Avatar
Sunny Sheth
Jawaban Terbai

Hi,

also add 'no_create_edit': True in your options list to prevent create contact/partner from Lead Form View.

{'no_open':True,'no_create':True,'no_edit':True, no_create_edit': True, 'no_quick_create': True}

and add crm, base Module in the depends 


Thanks & Regards,

Sunny Sheth


0
Avatar
Buang
Computadoras y Redes Locales de Michoacán S. A. de C.V.
Penulis

hi, i add the drm to the depends, and the custom addon its working because i copy and pase your options and warning me about the missing ' in no_create_edit, after that i update and upgrade and still showing the create, maybe for testing i try to change the string attribute for changing the name and dont work either. Im pointing to the wrong location?, the wrong form?, the wrong field?.

im doing this because in the main crm page, when the user create a new oportunity by the "create" button force it to select a valid customer

Sunny Sheth

try with widget="selection"

Computadoras y Redes Locales de Michoacán S. A. de C.V.
Penulis

yes, changin it like i was trying, but if i cant change my options or the string atributes this will not work too, thanks for all.

Avatar
Kode Kracker
Jawaban Terbai
<record id="crm_lead_inherit_tree_view" model="ir.ui.view">
<field name="name">crm.lead.inherit</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/group/group[@name='opportunity_partner']/field[@name='partner_id']" position="attributes">
<attribute name="options">{'no_create_edit': True, 'no_create':True}</attribute>
</xpath>
</field>
</record>
0
Avatar
Buang
Avatar
Niyas Raphy (Walnut Software Solutions)
Jawaban Terbai

Hi,

instead of replacing and adding field again, try using position attributes and set the option attributes as this.


{'no_open':True,'no_create':True,'no_edit':True}

0
Avatar
Buang
Computadoras y Redes Locales de Michoacán S. A. de C.V.
Penulis

&#60;record id="view_crm_lead_form_c" model="ir.ui.view"&#62;

&#60;field name="name"&#62;view.crm.lead.form.c&#60;/field&#62;

&#60;field name="model"&#62;crm.lead&#60;/field&#62;

&#60;field name="inherit_id" ref="crm.crm_lead_view_form"/&#62;

&#60;field name="arch" type="xml"&#62;

&#60;xpath expr="//field[@name='partner_id']" position="attributes"&#62;

&#60;attribute name="options"&#62;{'no_open':True,'no_create':True,'no_edit':True}&#60;/attribute&#62;

&#60;/xpath&#62;

&#60;/field&#62;

&#60;/record

here my try, and after upgrade my custom addon still dont working, i need to add some to depends in my manifest like the sale_management for apply the changes?

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
Fixing a custom field and database implications?
fields custom
Avatar
Avatar
1
Mei 16
6939
Adding custom fields by GUI?
fields custom
Avatar
Avatar
2
Mar 15
9645
Custom field to base field
fields custom base
Avatar
Avatar
Avatar
3
Jan 25
14002
Odoo 15 Community: Use Inherited Views to show Custom Field from sale.order in account.move.form
fields models custom
Avatar
0
Jul 22
3402
Add custom fields to product page on e-commerce website in an odoo.sh cloud setup
fields custom e-commerce
Avatar
Avatar
1
Jan 24
7256
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