almost 9 years ago
Printing any field on an OpenERP report on a conditional basis, you can add a simple line in your report
[[(object.field == 'Some Value') and 'value1' or 'value2']] is equivalent to
Suppose I want to print Cash Memo if cash_credit (the mode of payment for the invoice) is Cash and print Credit Memo if cash_credit is Credit, then I write this statement in my Openerp report as:
[[ (o.cash_credit == 'Cash') and 'Cash Memo' or 'Credit Memo' ]]
and convert to fields.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2022 FindNerd.com. All rights reserved.
Sign up using