Hi,
How to check that a Many2one field is filled or not in the .py and xml file
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
How to check that a Many2one field is filled or not in the .py and xml file
Thanks
Hello
in py file
if self.<M2O field>:
# code
in xml file like on domain you can check
<field name="field2" domain="[('M2O_field', '!=', False)]"/>
thanks
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
in your function check
if self.your_many2one_field:
do this
else:
do this