changeset 005a8691c81d in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=005a8691c81d
description:
        Populate pop-up menu with the context of the field

        The form Many2One must fill the context like the list view does to 
ensure same
        behavior from both side.

        issue9040
        review276851002
diffstat:

 tryton/gui/window/view_form/view/form_gtk/many2one.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 945de712e858 -r 005a8691c81d 
tryton/gui/window/view_form/view/form_gtk/many2one.py
--- a/tryton/gui/window/view_form/view/form_gtk/many2one.py     Wed Feb 12 
00:21:56 2020 +0100
+++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py     Sat Feb 15 
01:38:31 2020 +0100
@@ -322,7 +322,7 @@
         if self.has_target(value):
             populate(
                 menu, self.get_model(), self.id_from_value(value),
-                '', self.field)
+                '', self.field, self.field.get_context(self.record))
         return True
 
     def _set_completion(self):

Reply via email to