diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-07-23 09:55:56 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-23 13:41:00 +0200 |
| commit | e266c7c98a6a4b89c13eb7eb38709cc0251ea47f (patch) | |
| tree | 1b27ca28cac9f1d8577ae2bf14d0682e8920f05f /odoo/tests/common.py | |
| parent | 5c705c51cd8377b1c6e1bb2513db34afe48189ee (diff) | |
| parent | 5e4c1b370123dee4e6d6a91cd9582ba41c4d8bd4 (diff) | |
[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123dee
Diffstat (limited to 'odoo/tests/common.py')
| -rw-r--r-- | odoo/tests/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 5b7edeb4c9a..43e6106bdca 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -1378,7 +1378,7 @@ class Form(object): fields = self._view['fields'] for f in fields: v = self._values[f] - if self._get_modifier(f, 'required'): + if self._get_modifier(f, 'required') and not fields[f]['type'] == 'boolean': assert v is not False, "{} is a required field".format(f) # skip unmodified fields |
