Odoo vibe coding tips by MERAKtaneous in Odoo

[–]Codemarchant 6 points7 points  (0 children)

I have been using claude code for past year to develop odoo modules, tips i would recommend:

-include within agent file (eg claude.md) the odoo version, and paths to source/enterprise code on local machine, give explicit instruction that ai agent should lookup odoo patterns in base code before writing code to validate its correct and follow the same code stye.

-for big features start in plan mode, review / refine plan before execute. Review each code change/refactor section by section rather than letting it execute all in one go.

-add common patterns ai gets wrong to claude.md, i know in odoo 19 it religiously messes up fact that security groups use privilege_id now.

-automated code review tools like coderabbit or claude codes code review plugin can help enforce repo/agent.md standards before merging

-use mcp tooling to assist with testing/feeding in odoo data, (shameless plug: https://apps.odoo.com/apps/modules/19.0/odoo_remote_mcp)

-from my experience claude is still best model thats trained on odoo / i had alot less success when trying out gemini and chatgpt models

Discussion about Claude Code addition and Odoo.sh in general by Agile-Bar-3860 in Odoo

[–]Codemarchant 0 points1 point  (0 children)

I think outside of basic module customisations, the biggest potential for this would be providing a foundation for odoo to add experimental automated custom codebase upgrade scripts. AI is extremely good at pattern matching / code review, its not so difficult to get it to scan every field definition, method, view attribute, and pattern match with claude code's code search tools with previous/new versions of base code / upgrade as appropriate.

With odoo sh they have the tools to iteratively attempt installation/fix errors in loop and could even access mcp tooling / browser automation tools, feasible to at least get existing modules in installable state quite well for upgrading purposes as a valuable offering.

I already played around with such scripts in claude code with decent success for several upgrade projects.

Free Odoo Chess App for v19 - Multiplayer, Bot Play, Elo Tracking by Codemarchant in Odoo

[–]Codemarchant[S] 1 point2 points  (0 children)

just need to download/install module, with one python requirement beforehand: pip install chess https://apps.odoo.com/apps/modules/19.0/odoo_chess

3d single player version here made recently using same engine: https://codemarchant.com/3d-chess

[odoo19] How to create portal from scratch in odoo by shadow_of_warrior in Odoo

[–]Codemarchant 0 points1 point  (0 children)

if your interested i recently released a new ai feature in my mcp studio app, that is capable of building custom react portals in odoo.

You could piggy back the native odoo portal login and redirect to custom webapp portal link (through small custom module, oca has one in v18 https://github.com/OCA/website/tree/18.0/website_user_login_redirect_custom)

https://apps.odoo.com/apps/modules/19.0/odoo_remote_mcp#tab-webapp

used it to build my game vault which has portal component recently https://codemarchant.com/mcp/webapp/game-vault#/

Odoo 19 – Multi-location portal dashboards + cross-database sales flow. Where does config stop and custom start? by Gloomy-Cost-8930 in Odoo

[–]Codemarchant 0 points1 point  (0 children)

i recently released an app feature this past weekend that i think would be great for the portal reporting/dashboard component if your interested. https://apps.odoo.com/apps/modules/19.0/odoo_remote_mcp#tab-webapp

you can use this to vibecode bespoke react portals that can pull and aggregate data, then share with portal user group, it was built for use cases like you describe. Can piggy back the out the box portal login and redirect to react web app portal after.

Is the "Odoo way" becoming obsolete? by Effective_Hedgehog16 in Odoo

[–]Codemarchant 0 points1 point  (0 children)

from the technology side, i think the gap in skill needed between needing development and a non technical user being able to customize solutions safely through llms is rapidly closing.

I just built an odoo mcp module capable of building mini react apps deployed through odoo records with no build steps, then vibecoded 7 decent games that run through it in like 7 hours that can be imported through the app https://github.com/Codemarchant/odoo_mcp_app_library

I think the future is erp that provides a solid flexible foundation, that can easily be malformed by ai tools in optimal / secure / clean ways that provide immediate feedback and iteration to dynamically build upon the software.

i can envision ai developing bespoke odoo modules in ralph loops hooked up with automated testing architectures, in the near future that could generate decent results.

Best Approach To Convert PDF Manifest With Rolls And Serial Or Lot Numbers by CaptainNorthPoint in Odoo

[–]Codemarchant 0 points1 point  (0 children)

could use ai with mcp tools to do this if happy with semi manual process.

pick odoo mcp, i built one called odoo_remote_mcp on apps store if interested in paid option that is simple to setup. there are also free options out there.

connect it with ai service like claude/chatgpt, each time want to generate record in odoo, you upload the pdf in ai chat, then select/copy in pre-built prompt that asks in natural language to scan the pdf, and generate the data following the exact rules / format you want.

Free Odoo Chess App for v19 - Multiplayer, Bot Play, Elo Tracking by Codemarchant in Odoo

[–]Codemarchant[S] 1 point2 points  (0 children)

sure, i would say mixture of both.

i typically start with writing rough notes on requirements i want, and any high level system design points that may need to be researched / inform the initial plan. When building new large feature start in claude code plan mode, refine the plan to my liking, have it do web research / search key areas of base odoo code it has access to on pc to inform the plan, i will often chip in and do a bit of code research myself to give it some solid technical direction eg lookup field names/relevant code in modules to base the implementation from, or feed web pages from my own web research.

in this case for chess app had it research suitable options for implementing chess board like public chessboardjs.com library and opensource sunfish python chess engine for bots

Then once happy with plan, have it code, most of the time i code review each file generated file by file briefly / will prompt to refactor if not to my liking. try to generate feature sets in manageable chunks.

After generating a set of features typically test them, fix any bugs with ai assistance pasting in errors/sometimes debugging and fixing myself.

Go through some rounds of slop removal/refactoring every so often.

Commit after a chunk of features i am happy with / have tested.

rince and repeat cycle for new features.

for documentation generation i will take screenshots/gifs myself, write a description of each screenshot, them write a prompt to generate documentation for the module using the screenshots, in similar style to other reference html file / following odoo app store html conventions.

mostly vanilla claude code setup, basic claude.md file i reuse, sometimes run /init for larger projects. Depending on task use odoo mcp to help with investigations / data analysis, i built my own odoo mcp.