Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
50a08036 by Cédric Krier at 2023-06-18T17:42:36+02:00
Create screen with the mode from the action views

d800175396c4 changed the parameter name into view_mode instead of mode.

Closes #12332
- - - - -


1 changed file:

- tryton/tryton/action/main.py


Changes:

=====================================
tryton/tryton/action/main.py
=====================================
@@ -96,7 +96,7 @@
         if action['type'] == 'ir.action.act_window':
             if action.get('views', []):
                 params['view_ids'] = [x[0] for x in action['views']]
-                params['view_mode'] = [x[1] for x in action['views']]
+                params['mode'] = [x[1] for x in action['views']]
             elif action.get('view_id', False):
                 params['view_ids'] = [action['view_id'][0]]
 



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/50a08036dd8a1c22f0845e8b7851914edfb0e36a

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/50a08036dd8a1c22f0845e8b7851914edfb0e36a
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to