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


I am trying to check if the country is France then show a field Pay by Check? How do you specify a string e.g. 'France' in the filter above? Is there a better way to do it?

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

Hello!

Thank you for your question!

Try the following:

1 - On the needed form, add a *Related Field* to *Country > Country Name*.

2 - Now, add a *Checkbox* field, and definite its invisibility options as *Country* (carefully select the one just created) *> is not = > France.*

3 - You can now hide the related field created (*Country*) if you wish.

I hope I helped (:
Let us know how it goes!
Cheers,
Odoo eLearning Team.
อวตาร
ละทิ้ง

Hi there ,
why can't we directly create the check box field and do conditional invisibility based on Customer > Country code is not = "FR"
when i try that i get an error and it says probably xpath broke