Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
How to add multiple conditions for a custom field attribute.
Hello, I 've made some custom fields in account invoice form, and i want to make them required or not depended on journal_id. As far {'required':[('journal_id', '=', 1)]} works, but its only for 1 condition. i want to make something like {'required':[('journal_id', '=', 1), ('journal_id', '=', 12)]} but nothing happens. Also I 've tried {'required':['I', ('journal_id', '=', 1), ('journal_id', '=', 12)]} but then it says that "I" is not in the domain. Any ideas?
Also I want to know if there is a way to invoice products without delivery order and manage quantity on hand.
Thanks in advance
That's because you mistakenly used an "I" to place or. But it's not an L or an i. It's a bar. |. Use this bar -- > |
LOL. Thank you very much. You saved me from some more hours of dumb research. :)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 10/26/13, 2:48 PM |
Seen: 3202 times |
Last updated: 3/16/15, 8:10 AM |