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

i need form view like the view in base.res_partner_view.xml but i should use different model.so anyone can help me..

아바타
취소
베스트 답변

you have to inherit the resource partner class on your new module like this way: _inherit = 'res.partner' and in a columns section you can add the fields which you wanted in your module.

now you have to inherit the resource partner view also in xml like this way.. <record id="view_partner_form" model="ir.ui.view"> <field name="name">res.partner.form</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml">

now you have to give your custom filed position in to this view like this

<field name="email" position="replace"> <field name="gmail"/> <field name="skype"/> </field>

아바타
취소
관련 게시물 답글 화면 활동
View inheritance 해결 완료
1
3월 20
2729
12
12월 18
33864
1
7월 16
6307
2
3월 15
5322
0
3월 15
3388