1
votes

This question deals with testing a specific field to conditionally display information in a qweb view.

The example uses default_code from product.template.

What shall be done to test if sale_ok is false?

1

1 Answers

3
votes

To check the boolean field is false you can use below condition

<t t-if="!record.sale_ok.raw_value">