콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6960 화면

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
7422
0
8월 17
4220
0
8월 17
3916
0
5월 16
3339
1
3월 22
7662