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

Hello everyone

I am trying to add an access group to an existing view, by inheritance. This existing view already has an access group, that's why I need to add the other group.

Here the code:

<record id="partner_view_buttons2" model="ir.ui.view">
<field
name="name">partner.view.buttons.inherit.security2</field>
<field
name="model">res.partner</field>
<field
name="inherit_id" ref="account.partner_view_buttons"/>
<field
name="groups_id" eval="[[4, ref('custom_security.group_invoice_see_only')]]" />
<field
name="arch" type="xml">
<button
name="action_view_partner_invoices" position="attributes">
<attribute
name="groups">account.group_account_invoice,custom_security.group_invoice_see_only</attribute>
</button>
</field>
</record>
아바타
취소
베스트 답변

Watch this video https://www.youtube.com/watch?v=W5ya521uTlo This will help you.

아바타
취소
베스트 답변

Hi,

try this:

 <field name="groups_id" eval="[(4, ref('custom_security.group_invoice_see_only'))]" />


아바타
취소
베스트 답변


THIS WILL WORK ..!!


<record id="account.partner_view_buttons" model="ir.ui.view">

      <field name="groups_id" eval="[(4, (ref('custom_security.group_invoice_see_only'),))]"/>

</record>

아바타
취소
관련 게시물 답글 화면 활동
1
5월 22
5084
1
11월 24
1785
5
7월 24
93292
1
12월 23
3158
7
6월 24
24945