Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

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

Odebírat

Get notified when there's activity on this post

This question has been flagged
customizationv11modulerecorder
1 Odpovědět
3920 Zobrazení
Avatar
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
Avatar
Zrušit
Avatar
Jake Robinson
Nejlepší odpověď

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
Avatar
Zrušit
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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
module Extention/ Customization
customization
Avatar
Avatar
Avatar
Avatar
Avatar
5
srp 24
4612
When Odoo reserves stock for Sales Orders, can it do so taking into account the Date of the Order? Vyřešeno
v11
Avatar
Avatar
1
dub 22
10345
How to custom our Odoo LMS page?
customization
Avatar
0
led 22
3407
How can I prevent users from archiving Products? I only want certain users to be able to do this? Vyřešeno
v11
Avatar
Avatar
Avatar
2
lis 25
9645
How to modify the number of records seen in a Kanban view? Vyřešeno
customization v11 v10 Technical v12
Avatar
1
zář 21
4451
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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