[trytond] Allows dynamic fields in Model as required by the wizard in sale_pos_template_quantities
This commit is contained in:
parent
cabebf6428
commit
e1c4939891
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/trytond/model/model.py b/trytond/model/model.py
|
||||||
|
index c4ab96fc..bdb1c78b 100644
|
||||||
|
--- a/trytond/trytond/model/model.py
|
||||||
|
+++ b/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():
|
2
series
2
series
|
@ -46,3 +46,5 @@ issue8860.diff # [stock_forecast] stock_forecast does not spread all the quantit
|
||||||
|
|
||||||
statement_of_account.diff # [account] Cumulate balance of previous fiscal years
|
statement_of_account.diff # [account] Cumulate balance of previous fiscal years
|
||||||
issue9017.diff # [purchase] Doesn't copy product_suppliers when a template or a product is duplicated
|
issue9017.diff # [purchase] Doesn't copy product_suppliers when a template or a product is duplicated
|
||||||
|
|
||||||
|
model.diff # [trytond] Allows dynamic fields in Model as required by the wizard in sale_pos_template_quantities
|
||||||
|
|
Loading…
Reference in New Issue