Daily updates from Odoo
Thursday, July 4, 2019
2 changes
New functionality added to Odoo
Odoo now lets system operations use elevated access without replacing the real user identity with the main administrator account. This improves auditability and traceability while preserving needed background and controller behavior across many apps.
Original PR description
The environment has an extra parameter, the _superuser mode_ flag `env.su`, that bypasses access rights checks. The behavior of method `sudo()` is now to return the recordset attached to an environment _with the same user_ but in superuser mode. By convention, the superuser (uid=1) is always in superuser mode, so the access rights short-circuit only needs to check the flag `env.su`. ```python records_sudo = records.sudo() # same uid, but su=True records = records_sudo.sudo(False) # same uid, but su=False records_demo = records.with_user(demo_user) # other uid, su=False records_su = records.with_user(SUPERUSER_ID) # uid=1, su=True (because uid=1) ``` This feature should improve the traceability of operations (done by the real user instead of user 1).
A new Ponto integration lets Belgian businesses connect their bank accounts and automatically import bank statements into Odoo. This reduces manual entry, saves accounting time, and helps keep cash records up to date.
Original PR description
…s using ponto