Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8880 Представления

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. :)

Related Posts Ответы Просмотры Активность
1
окт. 24
1174
1
мая 16
5789
2
мар. 15
8570
3
янв. 25
12955
0
июл. 22
2393