Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4261 Visualizações

i have 2 groups in my application (group_staff, group_user). i have the below view

<record id="view_staff_reservation_form" model="ir.ui.view">

<field name="name">reservation.form.view</field>

<field name="model">reservations.reservation</field>

<field name="arch" type="xml">

<tree string="Reservation">

<field name="id"></field>

<field name="reserve_item_id"></field>

<field name="is_reserve"></field>

<field name="is_reserve_accepted"></field>

</tree>

</field>

</record>

i need to make is_reserve field is readonly for group_staff and i need to make is_reserve_accepted field is readonly for group_user. can anybody help on this

Avatar
Cancelar
Autor Melhor resposta

Hi Ludovic CHEVALIER,

Thanks for the reply. i tried it. but not working

Avatar
Cancelar
Melhor resposta

Maybe something like this:

        <field name="is_reserve" readonly="1" groups="group_staff"/>
<field name="is_reserve" groups="group_user"/>
<field name="is_reserve_accepted" readonly="1" groups="group_user">
<field name="is_reserve_accepted" groups="group_staff">

Bye!

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
jan. 24
13516
1
mai. 23
3962
3
dez. 23
90982
3
set. 21
5091
1
set. 15
8940