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
in your function check
if self.your_many2one_field:
do this
else:
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
지금 바로 가입하여 독점 서비스를 이용해보고 특별한 커뮤니티와 소통하세요!
1. Use the live chat to ask your questions. 2. The operator answers within a few minutes.
in your function check
if self.your_many2one_field:
do this
else:
do this