Commit Graph

204 Commits

Author SHA1 Message Date
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Thibault Delavallée 7b320464ff [REV] users: contraints on login = email style not applicable anymore.
bzr revid: tde@openerp.com-20130531082016-zx2lz6lhz4i4c7wt
2013-05-31 10:20:16 +02:00
Thibault Delavallée bb8153fcb7 [IMP] res_users: when specifying an email value, always check it is valid.
bzr revid: tde@openerp.com-20130524112621-ytoj7o5fqs7pcrty
2013-05-24 13:26:21 +02:00
Thibault Delavallée 4de42dc5a8 [MERGE] Sync with trunk
bzr revid: chm@openerp.com-20130415133654-l5b7zvga6mrv8bs3
bzr revid: tde@openerp.com-20130515082426-93tdl16rtm2kfz3a
bzr revid: tde@openerp.com-20130523133300-1el48hf8sotnvz62
2013-05-23 15:33:00 +02:00
Olivier Dony 823439f7e1 [FIX] res.groups: ensure predictable sort order
Unfortunately the group names are translatable,
and the display name is based on the hierarchy
of groups, so this will not give a satisfactory
result. What we would need ideally is to be able
to sort on the translated "full name" value,
but this is not supported by the ORM yet.
But a stable order is still better than no
order at all

bzr revid: odo@openerp.com-20130522163201-f9zo7xnjvbs2mi97
2013-05-22 18:32:01 +02:00
Vo Minh Thu 307ca374d6 [MERGE] forward merge 7.0 until revision 4919.
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +02:00
Christophe Matthieu d9e503ad6f [IMP] res_user: remove overwrite of create who change company_id value
bzr revid: chm@openerp.com-20130402084255-gapusfwxuyu2cfs1
2013-04-02 10:42:55 +02:00
Christophe Matthieu 40844a0645 [MERGE] from trunk
bzr revid: chm@openerp.com-20130329143357-t9jh49676giyxhwe
2013-03-29 15:33:57 +01:00
Christophe Matthieu 0fc5753a43 [IMP] res_user: on change login, change email
bzr revid: chm@openerp.com-20130327132142-xth9hpxtfh3qa3or
2013-03-27 14:21:42 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Christophe Matthieu d6f6e3ec4a [IMP] res_user: users are create with company_id = actual company_id
bzr revid: chm@openerp.com-20130326141858-da0e1avhwoswa99e
2013-03-26 15:18:58 +01:00
Christophe Matthieu 0cf0cf4f4c [IMP] res_users,res_partner: login = email
bzr revid: chm@openerp.com-20130326130127-974jagzvhon0biiy
2013-03-26 14:01:27 +01:00
Christophe Matthieu 9957d9654a [IMP] res_user: add a try catch in default_get for get_object_reference of default_groups_ref
bzr revid: chm@openerp.com-20130313154309-6dbd7y1ftxzpcmlx
2013-03-13 16:43:09 +01:00
Christophe Matthieu 3b6e76f5b4 [IMP] res_user: fix default_get; add default groups on simplified view
bzr revid: chm@openerp.com-20130227085023-q8mwozccystgf23a
2013-02-27 09:50:23 +01:00
Antony Lesuisse 7bdcf8817f m
bzr revid: al@openerp.com-20130226162648-pnf4ysf361a6g83j
2013-02-26 17:26:48 +01:00
Christophe Matthieu 7d3bf22347 [IMP] res_user: we can add 'default_groups_ref' inside the context to set default value for group_id with xml values
bzr revid: chm@openerp.com-20130128133003-rl1xem6hqhlkh621
2013-01-28 14:30:03 +01:00
Cedric Snauwaert 009ea40995 [FIX]res_users : add missing on_change function for res_user simplified view
bzr revid: csn@openerp.com-20130304105817-v3y9d9vupzhuiu2u
2013-03-04 11:58:17 +01:00
Christophe Simonis d48f07fef1 [FIX] base: allow admin to freeze the value of "web.base.url" config parameter.
This config parameter is automatically updated when the admin log-in.
As this value is mean to be used in emails and links given to users, we sometime don't want
it to be updated inconditionnaly. In some cases, the admin may use alternative, private or
even local uri to connect to the server, which may not be suitable for users

bzr revid: chs@openerp.com-20130301095551-fzrlwblnawxqj9di
2013-03-01 10:55:51 +01:00
Olivier Dony 5ab624b11e [FIX] res.users: context_get cache was not cleared properly, due to braindead implementation of ormcache (skiparg is misused and off by 1 in clear_cache)
Discarding the cache completely is suboptimal but
makes the code simpler, and this is not performance
critical anyway. The cache is mostly useful during
module installation, which involves no call to clear_cache.

bzr revid: odo@openerp.com-20121219101315-1ccuwm6nvmov12zv
2012-12-19 11:13:15 +01:00
Raphael Collet d98b1b0ff5 [IMP] res_groups: add m2m field to see view restrictions with given group
bzr revid: rco@openerp.com-20121218101916-r97xja82556schfg
2012-12-18 11:19:16 +01:00
Raphael Collet 57acd22a00 [MERGE] trunk-import-openerp-thu (use strict naming convention when importing openerp stuff)
bzr revid: rco@openerp.com-20121218085750-h0f50vi54q65ml5c
2012-12-18 09:57:50 +01:00
Olivier Dony 9bc690bf17 [IMP] res.users: enable cache on context_get, used by the _() translation function
When _() fails to find a context lang it looks
up the user language by calling context_get().
During module installation this may happen
thousands of times, and drastically slow down
the installation. Caching context_get calls
is an effective way to work around this,
until we find a better solution.

bzr revid: odo@openerp.com-20121217214700-6r7ju8iiaeowgj8i
2012-12-17 22:47:00 +01:00
Olivier Dony 9f77d2e2f4 [FIX] orm,registry: properly check m2o FKs during model update + fix some models `auto_init`ed multiple times
The case where no constraint existed at all was not working,
and after fixing it, the ORM started to re-create the same
constraints multiple times for some modules. This was for
models that are split within a module (such as res.users in
base, which is made of several small classes): all the
partial models were going through _auto_init instead
of only the final one - doing useless extra work.
      
Unfortunately establishing the FK happens before the
XML data files are loaded, so a number of FK and
NOT NULL constraints failed to apply due to missing
tables/records. base.sql had to be extended a bit
to cover these cases in a minimalist fashion

bzr revid: odo@openerp.com-20121217214645-av9n003yzterhujw
2012-12-17 22:46:45 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Cecile Tonglet 5179507e22 [MERGE] Branch updated with trunk
bzr revid: cto@openerp.com-20121217125902-idtlh4ztyah17bdn
2012-12-17 13:59:02 +01:00
Olivier Dony 9aa0701836 [FIX] res.users: whitelist recently added `tz_offset` field so that users can read it on their own record (even the anonymous user)
bzr revid: odo@openerp.com-20121212210137-u0vwkth5wt0au6qc
2012-12-12 22:01:37 +01:00
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Olivier Dony 8fba574007 [MERGE] Less intrusive timezone offset warning (corresponds to web branch)
bzr revid: odo@openerp.com-20121130174819-q8g6m5mhoaczcr8q
2012-11-30 18:48:19 +01:00
Fabien Meghazi dec5b8e761 [REM] Removed tz_offset from context and remove store=True
bzr revid: fme@openerp.com-20121129210033-p687bul10jiandxt
2012-11-29 22:00:33 +01:00
Olivier Dony 76eede3c21 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121129114302-fdkq0kxb6wubsuaw
2012-11-29 12:43:02 +01:00
Antony Lesuisse 299d98ac6e [MERGE] res.users get_context add timezone offset
bzr revid: al@openerp.com-20121128155922-ff67gskivujvx2qa
2012-11-28 16:59:22 +01:00
Olivier Dony 7f5ad72429 [MERGE] Forward-port 6.1 bugfixes up to rev. 4307
rev.4307 = rev-id launchpad_translations_on_behalf_of_openerp-20121125065030-g5if5pybr61la4yj

bzr revid: odo@openerp.com-20121126160320-t2suuik6lhk6wl0x
bzr revid: odo@openerp.com-20121126161836-mv8yymzgbnmif4ve
bzr revid: odo@openerp.com-20121126162023-ejvsapwouyudw6c6
bzr revid: odo@openerp.com-20121126181527-d4yx15372bis77qj
2012-11-26 19:15:27 +01:00
Antony Lesuisse f5254e03ff [FIX] res.users last_login typodowan
bzr revid: al@openerp.com-20121122221200-2ut9pdc3z40b26r1
2012-11-22 23:12:00 +01:00
Fabien Meghazi ee8894d509 [ADD] Add tz_offset function field in res.partner and set it in user's context
bzr revid: fme@openerp.com-20121122151458-hvtrwogldt69djss
2012-11-22 16:14:58 +01:00
Olivier Dony 4f58796e38 [IMP] res.users: avoid spurious warnings when last login date cannot be updated
bzr revid: odo@openerp.com-20121120131610-v0xwu5zsbmxwvcwe
2012-11-20 14:16:10 +01:00
Thibault Delavallée 29e0ab965f [IMP] res_users: removed hack about redirecting the fields view get. Added a simplified contact form the the user, used for example when viewing a salesman profile.
bzr revid: tde@openerp.com-20121115103412-jl0o40t8d3d76ysd
2012-11-15 11:34:12 +01:00
niv-openerp 44bdf27363 [FIX] temporarily disabled a hack on res.users to use the partners view because it made a lot of views crash
bzr revid: nicolas.vanhoren@openerp.com-20121114110558-lylif3w917pjeu3y
2012-11-14 12:05:58 +01:00
Fabien Pinckaers 38a788897f [MERGE] remove widgets
bzr revid: fp@tinyerp.com-20121102093110-oforyy904v72hd6g
2012-11-02 10:31:10 +01:00
Bharat Devnani (OpenERP) bf9f129053 [MERGE] merged with main server
bzr revid: bde@tinyerp.com-20121025110526-px4l6quqgszdmsf8
2012-10-25 16:35:26 +05:30
Bharat Devnani (OpenERP) e8b56a15d2 [IMP] ordered res_users by user_name
bzr revid: bde@tinyerp.com-20121025105616-mcecvpsu2svvwryr
2012-10-25 16:26:16 +05:30
Antony Lesuisse aebe743964 [FIX] revert remove password fp merge
Overriding the reset password meachnism should be done in auth signup/reset password addons.

bzr revid: al@openerp.com-20121024111746-r94n1uqyb01a4x0m
2012-10-24 13:17:46 +02:00
Bharat Devnani (OpenERP) 1c0b768ec6 [MERGE] merged with main server
bzr revid: bde@tinyerp.com-20121023111122-tg9ve8pfwidqi5x2
2012-10-23 16:41:22 +05:30
Fabien Pinckaers 7501a8b9ad [MERGE] trunk-fp
bzr revid: fp@tinyerp.com-20121022174451-ez1yw4d37y3okfk6
2012-10-22 19:44:51 +02:00
Fabien Pinckaers fec5454b3b [MERGE] preference remove change passwd
bzr revid: fp@tinyerp.com-20121022171502-frmdoqnazzuzfk1j
2012-10-22 19:15:02 +02:00
Vo Minh Thu f4b6f015b3 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121022095659-j1w8tdkkmwuhuniq
2012-10-22 11:56:59 +02:00
Pinakin Nayi (OpenERP) 50729e753f [IMP]users are sorted on name
bzr revid: pna@tinyerp.com-20121022055453-49hpyu9sf11gvunk
2012-10-22 11:24:53 +05:30
Raphael Collet 11051f32e0 [FIX] res_users.login: fix query parameters in cr.execute
bzr revid: rco@openerp.com-20121015100148-pkanx35vr6fqojuj
2012-10-15 12:01:48 +02:00
Nimesh (Open ERP) 69ecfa1480 [MERGE] merger with lp:openobject-server
bzr revid: nco@tinyerp.com-20121010052400-tp470p0h1yexump1
bzr revid: nco@tinyerp.com-20121011055444-th5ddxs1kw8cjtk9
2012-10-11 11:24:44 +05:30
Nimesh (Open ERP) d9a27d1902 [REMOVE] remove change password button.
bzr revid: nco@tinyerp.com-20121009055223-vflb9wxzo3nvw310
2012-10-09 11:22:23 +05:30
Raphael Collet bc34a0b071 [FIX] res_users: fix method copy() to not break test case
bzr revid: rco@openerp.com-20121005101220-jhnomko7woiuwf1f
2012-10-05 12:12:20 +02:00