Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
10430 Представления

This is original view, and there is group_id added <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> so only users with accounting access rights can see this tab, but how can i make this tab visible for all users?

 <record id="view_partner_property_form" model="ir.ui.view">
            <field name="name">res.partner.property.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="priority">2</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
            <field name="arch" type="xml">
             <page name="sales_purchases" position="after">
            <page string="Accounting" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
Аватар
Отменить
Лучший ответ

Hello Grf,

Yes you can visible this menu with all user they have two kind :

1. You added you all user in this group

2. Otherwise inherit or override this view and remove below condition 

field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>

I hope it's help you

Thanks

Аватар
Отменить
Автор

found already solution

with

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

<field name="groups_id" eval="[(6, 0, [])]"/>

</record>

thanx anyway

Related Posts Ответы Просмотры Активность
0
февр. 24
5
0
февр. 24
6
3
нояб. 23
14455
1
февр. 17
3813
5
авг. 24
46791