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.
in my invoice I would like to have a text / hint for the customer depending on the payment term.
If payment_term contains "prepaid" then print "You really have to pay before you get your item!"
How can I do this?
I got the following working:
You really have to pay before you get your item! Please use the following number as reference: [[ ((o.payment_term.name == '100% Vorkasse') or removeParentNode('para')) and '' ]] [[ o.number ]]
But I would like to have "contains", not "==".
[[ 'prepaid' in o.payment_term.name and 'You really have to pay before you get your item!' ]]
|x in s||True if an item of s is equal to x, else False|
This table summarizes the comparison operations:
|<||strictly less than||Â|
|<=||less than or equal||Â|
|>||strictly greater than||Â|
|>=||greater than or equal||Â|
|is not||negated object identity||Â|
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/6/14, 7:27 AM|
|Seen: 9340 times|
|Last updated: 3/16/15, 8:10 AM|