Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2147 มุมมอง

Hello everyone,

I have a group in a view as the following:



I want to focus on the product_qty line. Comporting inline both product_qty ​followed by product_uom_id.

I'd like that the line "product_qty" only show up if the user is in debug (base.group_no_one). 

I am able to not show the field product_qtywith the groups="base.group_no_one" but the field product_uom_id​ still appear. I'd like it to be present only if the user is in debug (groups="base.group_no_one"​) and have the group uom.group_uom but I was unable to find a way to add to AND group for the product_uom_id (only if it as both group). Is it possible to do it ? If yes how ?

Odoo 12 

Thank you for your help

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi you can add multiple groups by using comma separated names such as:

groups="base.group_no_one, uom.group_uom "

Moreover you can check this link:

https://youtu.be/WKsd_2TX1Bs

Inherit a view and add groups to a field

Hope it helps,

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14204
0
ต.ค. 23
33
3
ต.ค. 23
788
1
ต.ค. 23
569
1
ส.ค. 23
2530