[ADD] Developer: data module tutorial
Introduce a new tutorial about creating Odoo modules using XML data files instead of Python code.
This guide is follows closely the 'Server Framework 101' tutorial and covers the following:
- Module structure and deployment
- Defining models and fields
- Setting up security and access rights
- Creating views and actions
- Implementing relational fields (many2one, many2many, one2many)
- Working with computed and related fields
- Adding business logic through server actions and automation rules
- Creating website controllers for API endpoints
The tutorial includes practical exercises and code examples to reinforce learning, catering to developers who need to customize Odoo without writing Python code (e.g. Odoo PS-Tech employees, partners that focus on SaaS instances or author of Industry modules).
Task-4167176
Will need a new entry in codeowners (doc-review team i guess, same as the other tutorials?)
Hey there
Thx for both your reviews!
@vava-odoo
Tiny last point: I don't know if this tutorial needs to be exhaustive, but maybe mentioning the following items, although a bit advanced wouldn't hurt:
use of
<function/>
Could be a good idea, though i have few useful examples and can't really think of one that makes sense in the context of the 'Real Estate' app. Even for industry modules, i'm not convinced it's a frequent need?
add image/file as ir.attachment
You mean like adding an image in a knowledge article, or an html description, etc.? Makes sense for your case; a bit less for a ps-tech training. Could actually be included in the 'define module data' imho.
add some JS like a tour
Yes, i thought i included some info about including js files but apparently not. The tour seems like a simple enough example. (done)
add ir.model.data records to exclude from cloc
Not sure this is something that should be included in a generic tutorial that is on the documentation website? Seems more like internal stuff 🤔
@AntoineVDV my newbie will need this next week, if we can merge this week it would be swell
anything missing on your end? any way i can help?
I added the odoo/doc-review team as codeowner of this new tutorial to keep it simple, but we'll make sure to tag you if your review is needed for future PRs.
@robodoo r+
