Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

hide the create option at customer_id field

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
fieldscustomoptionsodoo13.0
3 Odpowiedzi
5537 Widoki
Awatar
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
Awatar
Odrzuć
Awatar
Sunny Sheth
Najlepsza odpowiedź

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
Awatar
Odrzuć
Computadoras y Redes Locales de Michoacán S. A. de C.V.
Autor

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.
Autor

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.

Awatar
Kode Kracker
Najlepsza odpowiedź
<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
Awatar
Odrzuć
Awatar
Niyas Raphy (Walnut Software Solutions)
Najlepsza odpowiedź

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
Awatar
Odrzuć
Computadoras y Redes Locales de Michoacán S. A. de C.V.
Autor

&#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?

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Fixing a custom field and database implications?
fields custom
Awatar
Awatar
1
maj 16
6925
Adding custom fields by GUI?
fields custom
Awatar
Awatar
2
mar 15
9631
Custom field to base field
fields custom base
Awatar
Awatar
Awatar
3
sty 25
13995
Odoo 15 Community: Use Inherited Views to show Custom Field from sale.order in account.move.form
fields models custom
Awatar
0
lip 22
3400
Add custom fields to product page on e-commerce website in an odoo.sh cloud setup
fields custom e-commerce
Awatar
Awatar
1
sty 24
7250
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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