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

Can 'Base Module Record' from Serpent CS do this?

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
customizationv11modulerecorder
1 Odpowiedz
3911 Widoki
Awatar
Bill Ennals

https://apps.odoo.com/apps/modules/11.0/base_module_record/

I want to use this module to add a field to the project.task model.  I want the field to be a relation field that references a field (parent_id) in the project.project model.  I want to then be able to search for tasks that belong to a project that has a particular parent_id.  I also want these changes to remain after I update the source code.

Can 'Base Module Record' assist me to do this?  If it can, can someone provide step-by-step instructions on how to achieve it?

-1
Awatar
Odrzuć
Awatar
Jake Robinson
Najlepsza odpowiedź

Hi Bill, 

The module will not be able to do such a customisation.

You mentioned the field 'parent_id' on the 'project.project' model, this is not standard Odoo as far as I know. Your customisation will therefore be customising another module that you have installed. Without a proper dependency in place this could wreak havoc.

Even if you were referencing a standard field, I would have to strongly advise against using this module.  Any changes like this should always be done in code in order to keep your project clean, and free from a giant number of single purpose modules.

If you know the module you are using to add 'parent_id' to the 'project.project' model, I would be happy to lend a hand in making this change for you.

Regards,
Jake Robinson
Dionysus Software

0
Awatar
Odrzuć
Bill Ennals
Autor

Thanks for the reply Jake. The parent_id field is created by the V10 OCA module account_analytic_parent which, although not officially migrated to 11, appears to work fine in it. As for 'Base Module Record', my understanding is that it should produce an installable module containing xml code that reflects the changes made during the recording process, though explanatory notes for the module are very limited and I haven't had any luck getting more detailed information from the developers, so I can't really say I know what the module is actually for.

Jake Robinson

Hi Bill,

Modules built for v10 will generally work in v11 as long as there haven't been changes around the specific part the module is targeting, so this is quite safe.

Your understanding is correct, but the issue comes with the more specific details of Odoo. Even if we ignore the fact that all changes to a models structure should preferably be done in python, not XML, the depends issue is still in play: Any time you do a base upgrade on a copy of the database, it doesn't know which module to install first. If it tries to install your new module before the the module that introduces the 'parent_id' on the 'project.project' model, it with throw an error.

I've taken a look at the 'account_analytic_parent' module that you have spoken about, and it seems that what you're asking is a little trickier than you mentioned. This module introduces parents for analytic accounts, not for projects. Though you could find the parents by finding the projects analytic account, find its' parent analytic account and then find its' related projects, this wouldn't be a straight one to one relationship.

Analytic accounts allow for multiple projects per account, and their parent account could then contain multiple projects. Even if this isn't how you have set your data up, the data types of the fields are structured that way, meaning a simple related field isn't possible.

As a heirarchy you can also have multiple levels of parents, did you want to be able to search grandparents, great-grandparents, etc.?

These kinds of tasks are much more suited to developers, so your best bet is to engage a developer or start learning a little bit of python to unlock the full potential of Odoo.

Regards,

Jake Robinson

Dionysus Software

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ść
module Extention/ Customization
customization
Awatar
Awatar
Awatar
Awatar
Awatar
5
sie 24
4611
When Odoo reserves stock for Sales Orders, can it do so taking into account the Date of the Order? Rozwiązane
v11
Awatar
Awatar
1
kwi 22
10345
How to custom our Odoo LMS page?
customization
Awatar
0
sty 22
3406
How can I prevent users from archiving Products? I only want certain users to be able to do this? Rozwiązane
v11
Awatar
Awatar
Awatar
2
lis 25
9645
How to modify the number of records seen in a Kanban view? Rozwiązane
customization v11 v10 Technical v12
Awatar
1
wrz 21
4450
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