Hey Cyllo community! Anyone got any good tips for inheriting form views? I'm struggling a bit and could use some pointers.
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
Here's how you can use view inheritance in Odoo to extend or modify existing views. I'll cover both the 'extension' and 'primary' modes. View Inheritance: mode="extension" This is the default mode and allows you to extend an existing view without overriding it. You can have multiple extension views for a single primary view.
product.category.view.form.inherit.your.module2
product.category
extension
inherit_id references the view being extended. xpath locates where to inject or modify content.
You can use position="after", before, replace, attributes,etc.
mode="primary"
Declares this view as the main view for the model. Only one view per type (e.g., form) can be primary. Used instead of overriding existing view IDs.
product.category.view.form.your.module2
product.category
primary