コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6811 ビュー

Hello everybody!!!

Can anyone explain to me how can i inherit a view and preserve the original one In Odoo?

Thanks a lot in advance.

Best Regards.

アバター
破棄
最善の回答

Hi @Drees Far

You need to set the field mode for the view record with value primary, like:

<field name="mode">primary</field>

Read the help of that field here:

'mode': fields.selection(

[('primary', "Base view"), ('extension', "Extension View")],

string="View inheritance mode", required=True,

help="""Only applies if this view inherits from an other one (inherit_id is not False/Null).

* if extension (default), if this view is requested the closest primary view

is looked up (via inherit_id), then all views inheriting from it with this

view's model are applied

* if primary, the closest primary view is fully resolved (even if it uses a

different model than this one), then this view's inheritance specs

(<xpath/>) are applied, and the result is used as if it were this view's

actual arch.

"""),

アバター
破棄

No comments or activity here? One more dropped bullet

関連投稿 返信 ビュー 活動
1
6月 18
7200
0
8月 17
4046
0
7月 17
3695
0
5月 16
3180
1
3月 22
7460