OCA Packages and it's dependencies #215
Replies: 3 comments 4 replies
-
Ola @marioolofo basicamente a Odoo não facilita muito para vc instalar seu próprio Odoo local. Ela nao respeita bem os padrões setuptools, tem um monorepo gigantesco etc. A gente pode suspeitar alguns motivos:
Nisso quem pretende tocar projetos Odoo reais tem que ser mais inteligente e varios integradores acabaram desenvolvendo ferramentas para ajudar isso. Mas hoje nem existe um "padrão unico" da OCA de fazer. Talvez o jeito mais próximo desse padrão seria esse: algumas outras ferramentas que alguns integradores fizeram:
Tem várias questões: tem aquela ferramenta que é mais facil para aprender mas tem a outra que é mais produtiva quando vc trabalha com muitos projetos etc... o git-aggregator é fondamental para trabalhar com a localização. Uma outra dica: os autores de alguns pacotes que a gente usa não mantem eles direito... Nisso apesar de codio atualizado na master, falta fazer o release dos pacotes python erpbrasil.base, erpbrasil.assinatura e o pacote erpbrasil.edoc tem realmente um problema mais fondamental e provavelmente vai acabar sendo substituído apesar de funcionar do jeito que ta ou com esforços mínimos. Enfim nisso, isso faz que esses últimos pacotes tendem a ter problemas de compatibilidade de versão suteis. Na duvida, eu te aconselho de olhar as versões nos requirements.txt e test-requirements.txt do repo e eventualmente conferir com as versões que vc encontra no inicio dos logs dos testes da CI do projeto. Por fim sei que isso realmente não deixa o projeto accessível. Mas veja que quem hoje não mantem os pacotes estavam se apresentando como aqueles salvadores da patria uns 2 anos atras ainda, complicado... A tendência é isso tudo melhorar. Ultimamente tem pessoas serias como da Escodoo e da Engenere que começaram a contribuir e a tendência é não voltar para tras. Uns dias atras vc perguntava sobre versão 18. Pois veja bem, a gente so vai conseguir manter as coisas atualizada se a gente adotar uma qualidade de psicopata no codigo assim como tende a ser nos outros repo da OCA. So assim fica viável migrar os módulos no automático e propagar os fixes entre as branches. Fizemos esse trabalho de limpeza por isso o "atraso" nas versões. Por fim vc vai pensar que tudo isso é bem complicado. Verdade, se vc não tiver uns 2 anos de Python profesional (tipo Django ou coisa do tipo), vc dança. Mas veja que mesmo se a gente gastar tempo de fazer uma receita do bolo pronto em vez de cuidar dos aspectos mais fondamental do projeto (limpar, migrar etc..) o que aconteceria, seria que vc instalaria em 2 dias sim, mas depois quebraria a cara no primeiro bug que encontraria do mesmo jeito. Ou seja só ia ganhar 1% na curva de aprendizado e ia queimar o projeto gostoso porque um monte de gente que hoje vai quebrar a cara com Odoo Enterprise iria quebrar a cara com a OCA e reclamar do projeto depois. E a gente aqui não tem a grana para fazer o damage control disso. Então é bom a gente adequar a promessa do projeto com a realidade... Mas novamente a tendência é tudo isso evoluir rapidamente. Se vc comparar as branches 12, 14 e 16 vai ver uma evolução muito grande ja. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the Portuguese everybody. @marioolofo as you asked on the OCA/l10n-brazil in Portuguese 2 days ago, from my cell phone I didn't see you were now asking in the generic OCA discussion forum and answered you in Portuguese. But nonetheless I think it still point you to the best content about what you asked for. Notice we created a docky template for projects with the Brazilian localization akretion/docky-odoo-brasil#19 |
Beta Was this translation helpful? Give feedback.
-
Hi @rvalyi, thanks for the reply. I wasn't sure if I could create the discussion in Portuguese, so I ended up changing the question to English.
Exactly what you said, we went after version 18.0 because it was the "pushed" version with the enterprise, but I managed to set up an environment with version 16.0 and some OCA l10n_br modules and I was able to show that you, in addition to being a localization reference and having everything we need to get started, keeping the system open source would be much more advantageous in the long term, both in terms of platform stability and workforce, and financially.
I watched it, but initially I take care of the maintenance and configuration of Amakha's servers, and until today I haven't had time to stop and create a Kubernetes environment, so I use DO droplets and run the projects on real hardware, it ends up being cheaper because a cheap server can run what Docker can't.
I don't see a problem with that. I like poring over code and understanding the nuances until it works perfectly. I've been doing this for 20 years, lol. Taking the opportunity, is there any OCA package similar to the messaging one, but with rich text and as an information feed to be used as an employee home screen in the admin? Thank you very much, I will try to continue even though this dependency tree is incomplete and if any package is really missing, I will ask again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm creating a machine with Odoo 16.0 and adding the OCA l10n_br packages according to the needs I identified with my client, but I'm not sure if I'm doing it correctly or if the process ends up being slow: for each repository I add to my addons folder, I have to add it to my odoo.conf, restart the service, log into Odoo and the applications, update the packages, and try to activate them.
Usually, this process reports that there are dependencies that are not installed, so I go there, find the repository for that dependency, clone it, update odoo.conf (in cases where a repository has multiple packages), restart the service, activate the dependency... and sometimes this dependency depends on other packages, and the cycle never ends.
Not to mention that sometimes it's not easy to find a package's repository, as the oca-community shop often doesn't show where the package comes from.
I don't know if there's an easier way to download every package and its dependencies, so what I'm doing right now is:
So, I created a script that scans all the Odoo and addons directories for manifest.py, creates a list of packages and their dependencies, and tells me which dependencies were missing for each package.
With this list, I still have to go through the initial process of hunting down the dependency repositories, but I can be sure that eventually I'll have them all added to the project... but I don't! There are cases like edi_endpoint_oca, which has an endpoint dependency, but this package doesn't exist for version 16.0.
Or product_attachment_zipped_download, which depends on attachment_zipped_download, but I can't find it anywhere.
Or the case of membership_extension, which exists in the membership package, but the website has no information about it.
Conclusion: is this really the case, or am I being really stupid, and is there a practical tool that can solve this for me?
If you're curious, I can post the Python script I created here.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions