summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-11-15 14:10:36 +0000
committerfw-bot <otis@odoo.com>2019-11-18 08:37:09 +0000
commit32dd2e97ec937500dd5066fe280d7b9d1e9be339 (patch)
treed0db7ee0015871056ea0f925ba5451c9ad985a98 /addons
parentad34b4f6e0fd847c82dfb793e4b6a1c2335b3f7f (diff)
[FIX] account,base: python 3.8 compatibility
Remove warnings Add mandatory parameter posonlyargs closes odoo/odoo#40396 X-original-commit: aeb1e592a6fbc918fb4edf4a8953aa375124337d Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account.py b/addons/account/models/account.py
index ef333b1de3f..4346c3448ed 100644
--- a/addons/account/models/account.py
+++ b/addons/account/models/account.py
@@ -1350,7 +1350,7 @@ class AccountTax(models.Model):
@api.onchange('amount_type')
def onchange_amount_type(self):
- if self.amount_type is not 'group':
+ if self.amount_type != 'group':
self.children_tax_ids = [(5,)]
if self.amount_type == 'group':
self.description = None