Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

how-to clone and use Modules of the OCA (an others maybe)?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
communitymodules
2 Răspunsuri
19397 Vizualizări
Imagine profil
gunnar

the git repositories of the OCA (https://github.com/OCA/hr for example) are contain always a bunch of modules, so if you clone them with git you get a folder with subfolders.

The 'addons_path' in your config file can not handle such a 2-level structure, so if you clone into the 'addons' folder Odoo will not find these modules. Is there any common practise how to organize that best?

Just adding level-1 folders in /opt/ocb/ocb-server for each batch of modules and then extending the addons path seems a little cluttered, isn't it?

1
Imagine profil
Abandonează
Imagine profil
Luke Branch
Cel mai bun răspuns

Hi Gunnar,

try the following command:

sudo git clone https://github.com/odoo/<<insert OCA repo here>> /opt/odoo/custom/addons/

Then add the custom folder to the odoo-server.conf or openerp-server.conf file (eg. /etc/odoo-server.conf) on the addons_path line. You can continue adding custom module directories in this manner by seperating them with a comma.
addons_path = /opt/odoo/odoo-server/addons,/opt/odoo/custom/addons

 

0
Imagine profil
Abandonează
Alex

I think he doesn't want to add too many addons path folders and find a way to clone several repositories in just one addons folder. I am interesting in this information too. Does anyone know if we can do this?

gunnar
Autor

@Luke: it isn't that simple because you will not clone one single Module with the command you suggest but a batch of Modules inside of a higer-level folder. Like this you have ~/custom/addons/folder/Module1, Module2, Module2, ... etc. so you would have to add ~/custom/addons/folder/Module1,~custom/addons/folder/Module2,~/custom/addons/folder/Module3,...etc That gives a lot of entries ..... I wonder it the OCA people have a suggestion how to handle this most efficiently. Maybe they didn;t think that through and leave it to any user to decide how to manage that ...

gunnar
Autor

@Luke: it isn't that simple because you will not clone one single Module with the command you suggest but a batch of Modules inside of a higer-level folder. Like this you have ~/custom/addons/folder/Module1, Module2, Module2, ... etc. so you would have to add ~/custom/addons/folder/Module1,~custom/addons/folder/Module2,~/custom/addons/folder/Module3,...etc That gives a lot of entries ..... I wonder if the OCA people have a suggestion how to handle this most efficiently. Maybe they didn;t think that through and leave it to any user to decide how to manage that ...

Imagine profil
Clement Zotti
Cel mai bun răspuns

Are you try to make some symbolic link ?

I have module in both place :

/opt/openerp/custom/addons_dev/

/opt/openerp/custom/addons/

 

and in my addons_path=/opt/openerp/server/addons,/opt/openerp/addons(here is where i made all the symbolic link)

and I have done

cd /opt/openerp/addons

and

ln -s /opt/openerp/custom/addons/* .

and

ln -s /opt/openerp/custorm/addons_dev/{module_1, module_2} .

With this I have only one folder with link to desired module, and I add or remove them easily(after uninstall them from odoo).

 

Hope this help.

0
Imagine profil
Abandonează
gunnar
Autor

so then the folder /opt/openerp/custorm/addons_dev is where you git clone into right? Do you list the symlinks in your 'official' addons folder in a .gitignore file, so when you update (git merge ...) your installation those will be ignored?

gunnar
Autor

ok, the symlinks work fine. I think that's an elegant way to work make an external modules folder like /opt/ocb/ocb-server/addons-clone and add symlinks as discribed in the "official" addons folder. When making a update modules list from inside you OpenERP/Odoo via the browser of your choice (firefox most likely) OpenERP finds the linked addons as well

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Consultation on the use of enterprise modules in community Rezolvat
community modules enterprise
Imagine profil
Imagine profil
1
sept. 22
3375
use odoo community module in enterprise
community modules enterprise
Imagine profil
Imagine profil
1
sept. 21
4708
How to create multiple task in a existing project by code? Rezolvat
community modules odoo
Imagine profil
Imagine profil
Imagine profil
3
aug. 21
4633
Subscribe to odoo Enterprise, now I have to pay for community version's module Rezolvat
community modules enterprise
Imagine profil
Imagine profil
Imagine profil
2
iul. 21
4969
can I add odoo enterprise apps in odoo community Rezolvat
community modules odoo12
Imagine profil
Imagine profil
Imagine profil
2
ian. 19
7220
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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