mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
13 lines
674 B
Diff
13 lines
674 B
Diff
diff --git a/tryton/trytond/model/model.py b/trytond/model/model.py
|
|
index c4ab96fc..bdb1c78b 100644
|
|
--- a/tryton/trytond/trytond/model/model.py
|
|
+++ b/tryton/trytond/trytond/model/model.py
|
|
@@ -258,7 +258,7 @@ class Model(URLMixin, PoolBase, metaclass=ModelMeta):
|
|
name = name[len('_parent_'):]
|
|
parent_values[name][field] = value
|
|
value = parent_values[name]
|
|
- if getattr(self.__class__, name).context:
|
|
+ if hasattr(self.__class__, name) and getattr(self.__class__, name).context:
|
|
has_context[name] = value
|
|
|
|
for name, value in parent_values.items():
|