Thibault Delavallée
d67e232806
[IMP] Improved comments and doc. Note that now avatar_stored stores a bigger version of the avatar, in case a bigger image must be used.
...
bzr revid: tde@openerp.com-20120323103230-lcpbl1e9qhidivz7
2012-03-23 11:32:30 +01:00
Thibault Delavallée
cab93f9673
[IMP] Added height and width parameters to the resize method. Propagated context.
...
bzr revid: tde@openerp.com-20120323101414-28xbjkfhk03f5whe
2012-03-23 11:14:14 +01:00
Thibault Delavallée
0e95e0cf92
[FIX] Fixed the last fix. Also cleaned a bit the code.
...
bzr revid: tde@openerp.com-20120323100513-m2n5n3jtxz8zo1yl
2012-03-23 11:05:13 +01:00
Thibault Delavallée
19f6b095fd
[MERGE] Merged with main server.
...
bzr revid: tde@openerp.com-20120323091819-ais3o3jqjqsofi6r
2012-03-23 10:18:19 +01:00
Thibault Delavallée
6e0643868e
[FIX] Forgot to update a field name.
...
bzr revid: tde@openerp.com-20120323091747-i2dhjhy5witysd7s
2012-03-23 10:17:47 +01:00
Thibault Delavallée
d48b3bdb6b
[IMP] Improved code: renamed avatar->avatar_stored (stored in database); avatar_mini->avatar (interface field taht must be used); removed unnecessary comments; added help string on added fields to help understanding how the functionality works.
...
bzr revid: tde@openerp.com-20120323090821-rse7y3i1qpp8tbky
2012-03-23 10:08:21 +01:00
Thibault Delavallée
4c41a2994a
[IMP] Avatar mini field gets automatically recomputed to avoid screwing the display when choosing a new one.
...
bzr revid: tde@openerp.com-20120313111418-fsrtwhcp0eesg0aq
2012-03-13 12:14:18 +01:00
Thibault Delavallée
9f2a5f2d03
[IMP] Improved default avatar (now takes randomly between 6 avatars); cleaned code about avatar and avatar_mini management; fixed bug when creating a new user where the chosen avatar was not saved
...
bzr revid: tde@openerp.com-20120313102916-w5rdtwco72xe8m7n
2012-03-13 11:29:16 +01:00
Thibault Delavallée
0790cbbfd7
[IMP] res.users: code cleaning
...
bzr revid: tde@openerp.com-20120313091651-6jvvuljjrlpjsto6
2012-03-13 10:16:51 +01:00
Valentin Lab
e6b91f0a69
[FIX] correct XML generation to avoid bad surprise (as ampersand in application name) to break the code.
...
bzr revid: valentin.lab@kalysto.org-20120308174304-3oqewchzlxw0fdre
2012-03-08 18:43:04 +01:00
Thibault Delavallée
dc6b84ab97
[IMP] Renamed photo field to avatar. Propagated changes. Modified user view: photo is now on the left of users tab.
...
bzr revid: tde@openerp.com-20120221152910-mw9zm3fnbyxbmqq8
2012-02-21 16:29:10 +01:00
Thibault Delavallée
8413a61979
[IMP] Removed calculated photo. res.users do not have to be aware it will be inherited. We won't make links between employee photo and user photo: user photo will be used.
...
bzr revid: tde@openerp.com-20120221151542-u2ic748f0wtnvrsr
2012-02-21 16:15:42 +01:00
Thibault Delavallée
c9d383613a
[IMP] res.users: added photo_calc for calculated photo; can be overriden to display photo from another module (ex: hr). By default, photo_calc is the photo defined in the user.
...
bzr revid: tde@openerp.com-20120221113523-1o3j83a9hrtcojh9
2012-02-21 12:35:23 +01:00
Thibault Delavallée
0e6c779ae2
[ADD] Added photo_mini field, holding a resized version of photo. Added resizing method.
...
bzr revid: tde@openerp.com-20120221091257-r2g306wgkalcpyrl
2012-02-21 10:12:57 +01:00
Thibault Delavallée
2388c019f1
[IMP] res.users: added default photo (base/images/photo.png)
...
bzr revid: tde@openerp.com-20120221085606-h5wufginyq4su9sw
2012-02-21 09:56:06 +01:00
Thibault Delavallée
353a5aabeb
[ADD] res.users: added photo field
...
bzr revid: tde@openerp.com-20120221083005-6lpz3208cgzwpcau
2012-02-21 09:30:05 +01:00
Olivier Dony
f87324e93e
[FIX] res.users: don't delay login() if user row is currently locked
...
Any running transaction that has created or altered
a record that contains a FK to the user is automatically
holding an SharedRowLock that prevents login() from
updating the last login date. As we cannot delay the
login() until all such transactions are finished,
it's simpler to try to get the lock and if that
fails, we skip the login date update for once,
no big deal.
A typical candidate for this situation is the
Admin user, locked out by long running cron
jobs that touch rows as Admin, hence holding
a ShareRowLock to res.users ID 1 because of the
many create_uid/write_uid foreign keys.
lp bug: https://launchpad.net/bugs/713216 fixed
bzr revid: odo@openerp.com-20120213183207-45ptopqm0szritgx
2012-02-13 19:32:07 +01:00
Olivier Dony
a04e39233c
[IMP] res.users: avoid reading twice the groups_id o2m - causing duped query
...
lp bug: https://launchpad.net/bugs/922198 fixed
bzr revid: odo@openerp.com-20120210105955-arhy1wc2qzlfy87r
2012-02-10 11:59:55 +01:00
Antony Lesuisse
1a62602c86
[MERGE] trunk
...
bzr revid: al@openerp.com-20120131211744-whzzo0dh6w1kptng
2012-01-31 22:17:44 +01:00
Olivier Dony
3f123d6e7a
[IMP] res.users: better tooltip for Timezone user pref
...
bzr revid: odo@openerp.com-20120130112007-g0yheu62uo9j133p
2012-01-30 12:20:07 +01:00
Vo Minh Thu
f0b63f8028
[IMP] openerp.addons.base: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124131705-pxbfdppbcwgpuajd
2012-01-24 14:17:05 +01:00
Vo Minh Thu
5089a678cb
[IMP] res_users.login(): eliminate a possibility to get a transaction rollbacked
...
because of concurrent access. This can happen when the same user is trying to log in
from many clients concurrently.
bzr revid: vmt@openerp.com-20120112084030-kkz1aztp5t6vkbh9
2012-01-12 09:40:30 +01:00
Olivier Dony
bdce754108
[IMP] cleanup deprecated method=True param for function fields
...
bzr revid: odo@openerp.com-20120104133027-oaydmngk2dfc22mk
2012-01-04 14:30:27 +01:00
Fabien Pinckaers
6f293d0ec3
[IMP] useability: desactivate menutips by default
...
bzr revid: fp@tinyerp.com-20120104110226-izfzv94jdh54mum7
2012-01-04 12:02:26 +01:00
Raphael Collet
f17b864c63
[FIX] res_users: add explicitly False in non-required selection group fields
...
bzr revid: rco@openerp.com-20111219083458-e0uqpa9vx52lnr9p
2011-12-19 09:34:58 +01:00
Olivier Dony
525d60523e
[FIX] res.users: no global var for filtering groups, rather an overridable method
...
bzr revid: odo@openerp.com-20111215154048-qz7o4qqj9d1g439k
2011-12-15 16:40:48 +01:00
Olivier Dony
86f2aef370
[FIX] res_users: side-effect of virtual groups prevented users from saving their prefs
...
lp bug: https://launchpad.net/bugs/904626 fixed
bzr revid: odo@openerp.com-20111215120741-1lne9fjs67d7c42k
2011-12-15 13:07:41 +01:00
Raphael Collet
84d3670c94
[MERGE] users and groups: new implementation of group fields on users form view
...
bzr revid: rco@openerp.com-20111213141632-vk1uandq3q0szdbq
2011-12-13 15:16:32 +01:00
Fabien Pinckaers
33642e464a
[IMP] useability board amdin
...
bzr revid: fp@tinyerp.com-20111212162133-ykfruug7qns3fwe9
2011-12-12 17:21:33 +01:00
Raphael Collet
6ae2f3b3e6
[FIX] res_users: ignore group fields in create and write when 'groups_id' is given
...
bzr revid: rco@openerp.com-20111209151855-hw23dp6a3ycs3pj8
2011-12-09 16:18:55 +01:00
Raphael Collet
a15cfa48c6
[IMP] res_users: improve create, write, read, and default_get with group fields
...
bzr revid: rco@openerp.com-20111209134658-vmvfvlngoa1wd7y1
2011-12-09 14:46:58 +01:00
Raphael Collet
e85fd9b685
[IMP] res_users: add domain when searching for groups by application
...
bzr revid: rco@openerp.com-20111209124821-vcvsjlwacb3xtz90
2011-12-09 13:48:21 +01:00
Raphael Collet
41501317ed
[FIX] res_users: group fields shall be removed before write
...
bzr revid: rco@openerp.com-20111209103053-wnolmypihzj95b9u
2011-12-09 11:30:53 +01:00
Raphael Collet
251dc86e67
[IMP] res_users: improve get_groups_by_application
...
bzr revid: rco@openerp.com-20111209092700-v7vbcgmliydmo6up
2011-12-09 10:27:00 +01:00
Raphael Collet
823c79f510
[FIX] res_users: avoid coalesce in uniqueness constraint (not well supported)
...
bzr revid: rco@openerp.com-20111209081110-88zlxdt46tq4is4l
2011-12-09 09:11:10 +01:00
Raphael Collet
cda72d1e96
[IMP] res_users: implement sorting on full_name
...
bzr revid: rco@openerp.com-20111209080319-otm4tr2ezw60109l
2011-12-09 09:03:19 +01:00
Raphael Collet
0940bea6f1
[IMP] make module category and group names translatable
...
bzr revid: rco@openerp.com-20111209080239-n58y4se9n6pjcll2
2011-12-09 09:02:39 +01:00
Raphael Collet
8059d3cadc
[IMP] res_users: improve code for arch view generation
...
bzr revid: rco@openerp.com-20111207123504-g2mvkk4g4cp0exga
2011-12-07 13:35:04 +01:00
Raphael Collet
f1fc682639
[FIX] res_users: do not store field 'full_name' of groups, as this would not work with translations
...
bzr revid: rco@openerp.com-20111207121101-cwjvy6dfu67ryh26
2011-12-07 13:11:01 +01:00
Raphael Collet
ec12c2d32a
[IMP] res_users: add comments
...
bzr revid: rco@openerp.com-20111207085002-ft2u77qab1m259d2
2011-12-07 09:50:02 +01:00
Raphael Collet
c029699c5e
[FIX] res_users: fix write() on selection group fields
...
bzr revid: rco@openerp.com-20111207084419-14xffbe63qa12g5y
2011-12-07 09:44:19 +01:00
Raphael Collet
92ce00ddb5
[IMP] res_users: simplify code
...
bzr revid: rco@openerp.com-20111207084332-y97sss2jx1cdztt3
2011-12-07 09:43:32 +01:00
Raphael Collet
fdfcf965db
[IMP] res_users: remove unused stuff
...
bzr revid: rco@openerp.com-20111206163200-pmw8n30nlnjn3foy
2011-12-06 17:32:00 +01:00
Raphael Collet
96878a5fc6
[IMP] res_users: remove unused methods get_closure and get_maximal
...
bzr revid: rco@openerp.com-20111206162356-rysxwfb47h3javtg
2011-12-06 17:23:56 +01:00
Raphael Collet
a3424cf3e2
[IMP] res_users: improve comments
...
bzr revid: rco@openerp.com-20111206162020-tql7kmggqirq0oy6
2011-12-06 17:20:20 +01:00
Raphael Collet
6093f636f7
[IMP] res_users: simplify group categorization
...
bzr revid: rco@openerp.com-20111206135148-uu5vd4w15slr93cg
2011-12-06 14:51:48 +01:00
Raphael Collet
788eb62ac2
[IMP] res_users: improve access rights on user form
...
bzr revid: rco@openerp.com-20111206125642-hatpewnnxsg9nerx
2011-12-06 13:56:42 +01:00
Raphael Collet
9e1de990fd
[IMP] res_users: add tips in selector group fields
...
bzr revid: rco@openerp.com-20111206110920-34fp50qt3v1hscef
2011-12-06 12:09:20 +01:00
Raphael Collet
12ce46102f
res_users: reintroduce selectors for group fields
...
bzr revid: rco@openerp.com-20111206110515-4rhub0y2d0lbboac
2011-12-06 12:05:15 +01:00
Raphael Collet
720a6fb7dd
[IMP] reimplemented user access rights form (basic)
...
bzr revid: rco@openerp.com-20111206091011-u7vgz4ig9p2ae2bl
2011-12-06 10:10:11 +01:00