Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2085 Lượt xem


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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.
Ảnh đại diện
Huỷ bỏ

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