add issue8637 patch. Use new related API for _changed_values

This commit is contained in:
?ngel ?lvarez 2019-09-03 10:23:03 +02:00
parent f31d0f3a86
commit 3f10886e9b
2 changed files with 16 additions and 0 deletions

14
issue8637.diff Normal file
View File

@ -0,0 +1,14 @@
diff -r a7d5fe2a362d trytond/model/modelview.py
--- a/trytond/trytond/model/modelview.py Tue Sep 03 10:14:28 2019 +0200
+++ b/trytond/trytond/model/modelview.py Tue Sep 03 10:17:13 2019 +0200
@@ -765,7 +765,9 @@
if field._type in ('many2one', 'one2one', 'reference'):
if value:
if isinstance(value, ModelStorage):
- changed['%s.rec_name' % fname] = value.rec_name
+ changed['%s.' % fname] = {
+ 'rec_name': value.rec_name,
+ }
if value.id is None:
# Don't consider temporary instance as a change
continue

2
series
View File

@ -46,6 +46,8 @@ issue8369.diff # [trytond] Sort keys of PYSON XML value
issue8375.diff # [trytond] n_sign_posn and p_sign_posn are considered as string by trytond.convert
issue8637.diff # [trytond] Use new related API for _changed_values
# Sao
issue8240.diff # Add drag and drop support to sao