Community mailing list archives

community@mail.odoo.com

Re: Form view inheritance

by
Quentin THEURET
- 09/17/2015 09:29:06
On 17/09/2015 14:33, Guewen Baconnier wrote:
> If the model is different, you don't even need to use the 'primary' mode.
> 
> We can find an example of this on the reporting wizards of the account module.
> A base view on the model 'account.common.report':
> https://github.com/odoo/odoo/blob/8.0/addons/account/wizard/account_report_common_view.xml#L5-L42
> A view which extends the base view for the general journal wizard:
> https://github.com/odoo/odoo/blob/8.0/addons/account/wizard/account_report_general_journal_view.xml#L5-L17
> A view which extends the base view for the general ledger wizard:
> https://github.com/odoo/odoo/blob/8.0/addons/account/wizard/account_report_general_ledger_view.xml#L5-L23
> 
> The base view is never altered here because it is on another model.
> 
> If the model was the same and you wanted to diverge a view, you'd have
> to change the 'mode' of the view to 'primary'


Thanks Guewen, I will test that.

Regards,

-- 
Quentin THEURET

TeMPO Consulting
20, Avenue de la paix
67000 Strasbourg
France

http://www.tempo-consulting.fr
Tel : 33 (0)3 88 56 82 18
Fax : 33 (0)9 70 63 35 46