跳至內容
選單
此問題已被標幟
2 回覆
4274 瀏覽次數

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

頭像
捨棄
作者 最佳答案

Hi Ludovic CHEVALIER,

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

頭像
捨棄
最佳答案

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!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
1月 24
13526
1
5月 23
3966
3
12月 23
90992
3
9月 21
5098
1
9月 15
8944