Commit Graph
4 Commits
Author SHA1 Message Date
Raphael Collet 97392bcf19 [FIX] base_gengo: method get_gengo_key not aimed at being public 2019-07-08 13:51:35 +00:00
Raphael Collet caf900e89e [FIX] *: use auth='public' in controllers that use request.env
The following trick used to work, because `sudo()` was actually making
an environment for the superuser to operate upon:

request.env[...].sudo().method(...)

It no longer works in general, since `sudo()` now makes an environment
in superuser mode but with `uid=None`!  It may still work by accident
for operations that never use `env.uid`, but is broken in general.

Using `auth='public'` fixes the problem by using the public user when no
user is available.

closes odoo/odoo#34297

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-07-04 11:32:22 +00:00
Yannick Tivisse 651caf0f59 [MIG] base_gengo: Migrated to new API 2016-07-13 16:46:29 +02:00
Yannick Tivisse 9fd3c9e7f0 [MOV] base_gengo: Reorganized File Structure 2016-07-13 15:36:50 +02:00