Fix typo and add parent to message dialog
This commit is contained in:
1 parent
6b43654535
commit
79cdbbd000
1 file changed
+2
-1
@@ -437,7 +437,8 @@ class Many2One(WidgetInterface):
|
||||
act = action.copy()
|
||||
obj_id = self._view.modelfield.get(self._view.model)
|
||||
if not obj_id:
|
||||
common.message(_('You must select a record to use the relation !'))
|
||||
common.message(_('You must select a record to use the relation!'),
|
||||
self._window)
|
||||
return False
|
||||
screen = Screen(self.attrs['relation'], self._window)
|
||||
screen.load([obj_id])
|
||||
|
||||
Reference in new issue
Block a user