diff --git a/issue7677.diff b/issue7677.diff new file mode 100644 index 0000000..06c3df7 --- /dev/null +++ b/issue7677.diff @@ -0,0 +1,14 @@ +diff --git a/tryton/trytond/trytond/model/modelview.py b/tryton/trytond/trytond/model/modelview.py +index dafa3c4608..dce8e790b1 100644 +--- a/tryton/trytond/trytond/model/modelview.py ++++ b/tryton/trytond/trytond/model/modelview.py +@@ -786,7 +786,8 @@ class ModelView(Model): + continue + if field._type in ('many2one', 'one2one', 'reference'): + if value: +- if isinstance(value, ModelStorage): ++ if isinstance(value, ModelStorage) ++ and value.id and value.id >= 0): + changed['%s.' % fname] = { + 'rec_name': value.rec_name, + } diff --git a/series b/series index d115c08..31632f1 100644 --- a/series +++ b/series @@ -109,3 +109,5 @@ issue12583.diff # [stock_lot] Missing search function in default_uom field in st issue12109.diff # [sale] [purchase] [sale_product_customer] Replace _parent_ expression with direct field on sale and purchase line issue11574.diff # [stock] #162150 missing warehouse in stock.shipment.in.return. Since Support warehouse pickup add warehouse + +issue7677.diff # [trytond] Do not set rec_name for unsaved record