[16.0][ADD] web_quick_start_screen: New module#2920
Conversation
| f"fa {action.icon_name or 'fa-flash'} " | ||
| f"o_start_icon_color_{action.color}" | ||
| ), | ||
| "action_name": action.action_ref_id.id, |
There was a problem hiding this comment.
Warning the field is non mandatory and will break with the following stacktrace
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 1649, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo/odoo/http.py", line 1676, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/odoo/http.py", line 1880, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/odoo/http.py", line 732, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/mnt/data/odoo-addons-dir/web_quick_start_screen/controllers/quick_start_screen.py", line 17, in quick_start_screen
]._get_start_screen_actions()
File "/mnt/data/odoo-addons-dir/web_quick_start_screen/wizards/quick_start_screen.py", line 25, in _get_start_screen_actions
"action_name": action.action_ref_id.id,
AttributeError: 'NoneType' object has no attribute 'id'
There was a problem hiding this comment.
Shouldn't this be an evalued expression?
There was a problem hiding this comment.
Warning the field is non mandatory
Sure it should be. Thanks :)
Shouldn't this be an evalued expression?
Not really, but the key name is a bit missleading, changing it
There was a problem hiding this comment.
OK, but we talked about some evalued thing (¿the context or the domain?)
There was a problem hiding this comment.
Yeah, I was thinking that being able to just run a custom server action there's no need to add such logic as server actions already provide a full fledged code evaluator. There's a simple optianal context, that can be used for manual actions thou.
There was a problem hiding this comment.
OK, please indicate these hints in the README for others to be able to discover that usefulness.
| Usage | ||
| ===== | ||
|
|
||
| Once you login, you'll go to the quick actions screen. Just click in and |
There was a problem hiding this comment.
This shouldn't be something out of the box for all the users. I think this module should provide an action that can be put as initial action in the users configuration to go to the screen. Other options:
- A security group to include users in.
- A check in the user.
| f"fa {action.icon_name or 'fa-flash'} " | ||
| f"o_start_icon_color_{action.color}" | ||
| ), | ||
| "action_name": action.action_ref_id.id, |
There was a problem hiding this comment.
Shouldn't this be an evalued expression?
3b1c95a to
c7f6eca
Compare
|
I'm also thinking about having a parent model for quick start templates, to have several of them, so they can be assigned for different users in the initial action/user preference. What do you think? |
I was thinking in that too, but simpler just making the model regular instead of transient. And then the actions be linked in many2many relation |
c7f6eca to
3a71416
Compare
|
Refactor done so we can have multiple start screens. I found some limitations with the banner controller, but maybe they aren't important right now |
10c8902 to
ec35de0
Compare
c8c8929 to
6300132
Compare
6300132 to
0555d0b
Compare
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 6b17638. Thanks a lot for contributing to OCA. ❤️ |
This module adds a configurable start screen so users can go right into
their more common tasks.
cc @Tecnativa TT50477
please check @pedrobaeza @CarlosRoca13