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

Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!(its a custom field))

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
customizeodooOdoo13.0
1 Odpowiedz
4705 Widoki
Awatar
Arun

i tried to delete one of my custom field (ex: x_yz). when i save error popup.

Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!


but in miscellaneous, it show type custom field.

how to delete this field

Even when i create or edit , the error in shown up

0
Awatar
Odrzuć
Awatar
Syama Prajith
Najlepsza odpowiedź

Hi Arun

The error message "Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!" indicates that you're attempting to modify a field that Odoo considers a base field. Base fields are essential fields that are part of Odoo's core framework and cannot be directly edited through the user interface.

In your case, the field "x_yz" is likely considered a base field, even though it appears under the "Custom Field" category in Odoo's Miscellaneous section. This could be due to its underlying relationship with another model or its involvement in some core Odoo functionality.  

To delete this field, you'll need to modify it through Python code. Follow these steps:

  1. Create a Custom Addon: Create a new Odoo module to house the code for deleting the field. This will allow you to make changes to Odoo's code without directly modifying the core files.
  2. Locate the Field Definition: Identify the model where the field "x_yz" is defined. This can be found in the model's .py file, usually under the fields attribute.
  3. Remove the Field Definition: Remove the field definition from the model's fields attribute. This will effectively remove the field from the model and its associated views.
  4. Update the Odoo Database: Once you've modified the field definition, you need to update the Odoo database to reflect the change. This can be done by restarting the Odoo server or manually clearing the database cache.
  5. Verify the Field Deletion: After the Odoo server restarts or the cache is cleared, check the model's form view to ensure the field "x_yz" has been removed.

Here's an example code snippet for removing the field "x_yz" from the res.partner model:

class PartnerCustom(models.Model):

    _inherit = 'res.partner'


    def _remove_x_yz_field(self):

        # Remove the x_yz field from the model's fields attribute

        del self._fields['x_yz']


        # Update the database to reflect the change. This might require restarting the Odoo server or clearing the database cache.


This code defines a new class PartnerCustom that inherits from the res.partner model. It defines a method _remove_x_yz_field that removes the field x_yz from the model's fields attribute. This method can be called to remove the field from the database.


Thanks,

Syama Prajith 

0
Awatar
Odrzuć
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ść
Add New Operation Type in Warehouse Rozwiązane
odoo Odoo13.0
Awatar
Awatar
Awatar
2
gru 24
5213
Unable to use TensorFlow in Odoo module Rozwiązane
odoo Odoo13.0
Awatar
Awatar
1
lis 25
4080
Low Stock methods
customize odoo
Awatar
Awatar
Awatar
2
sie 23
3217
how to get values from a res config settings field Rozwiązane
odoo Odoo13.0
Awatar
Awatar
Awatar
2
kwi 23
19829
Getting password reset invitation mail for inactive user in Odoo13? Rozwiązane
odoo Odoo13.0
Awatar
Awatar
1
mar 23
3295
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