Use empty list as default value for Many2Many companies

issue10163 introduced None as default value but it is not supported.
This commit is contained in:
Cédric Krier committed 2021-03-24 13:48:25 +01:00
1 parent 34ff16a200
commit 1abbfa5eb7
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ class User(metaclass=PoolMeta):
@classmethod
def default_companies(cls):
company = Transaction().context.get('company')
return [company] if company else None
return [company] if company else []
@classmethod
def default_company(cls):