Commit Graph

191 Commits

Author SHA1 Message Date
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 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
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
Antonin Bourguignon adf470bc88 [FIX] some security issues
bzr revid: abo@openerp.com-20120928163956-3qytfhh1t03xaa1x
2012-09-28 18:39:56 +02:00
Antonin Bourguignon 8353cc1ca9 [FIX] res_partner.py: read countries as SUPERUSER
res_users.py: add login to the readable fields

bzr revid: abo@openerp.com-20120918141421-k6awa3xf6x2nx691
2012-09-18 16:14:21 +02:00
Antonin Bourguignon d63b7de7cc [IMP] use const SUPERUSER_ID instead of int 1
bzr revid: abo@openerp.com-20120918120230-h8b1qtaiev5jbpwr
2012-09-18 14:02:30 +02:00
Antonin Bourguignon c7ee41cfbb [FIX] wording in comments
bzr revid: abo@openerp.com-20120918115717-p57dpbdpbht1m4wr
2012-09-18 13:57:17 +02:00
Thibault Delavallée fa9a3e6630 [IMP] res_users: added readable files, to allow people like portal users to see their name and basic data when logging...
bzr revid: tde@openerp.com-20120917160241-k96a24nf60jgr0h8
2012-09-17 18:02:41 +02:00
Fabien Pinckaers 554313efd7 [MERGE]
bzr revid: fp@tinyerp.com-20120911162349-4voo8ptehkkk78ev
2012-09-11 18:23:49 +02:00
Thibault Delavallée 171533d8dc [IMP] res_partner: moved the avatar colorize part of the image code to tools/image.py, where it should have been placed at revs 4373-4375.
bzr revid: tde@openerp.com-20120907092206-1pgbcvt8tn23m114
2012-09-07 11:22:06 +02:00
Harry (OpenERP) 8ce3484f3e [FIX] res_users: tips on groups
bzr revid: hmo@tinyerp.com-20120906064912-pp1xgtjswbykh2gh
2012-09-06 12:19:12 +05:30
Harry (OpenERP) 4eeb4fecba [MERGE] res_users: search by full_name
bzr revid: hmo@tinyerp.com-20120906060924-g6wgamhkzadnbjnq
2012-09-06 11:39:24 +05:30
Harry (OpenERP) 52b7041edd [MERGE]
bzr revid: hmo@tinyerp.com-20120906054210-w36au930qwelbtt2
2012-09-06 11:12:10 +05:30
Hardik 6abc8a1d76 [IMP]Search by Advanced for groups using fnct_search
bzr revid: hsa@tinyerp.com-20120903132542-xzfow8u5qbgxvbt2
2012-09-03 18:55:42 +05:30
Fabien Pinckaers f29be675e2 [FIX] all image stuff on groups, users, partners
bzr revid: fp@tinyerp.com-20120903095527-7rk7wxuldv80fj4v
2012-09-03 11:55:27 +02:00
Turkesh Patel (Open ERP) df107e19ec [FIX] pass context in search and name_get method inside name_search.
bzr revid: tpa@tinyerp.com-20120903084625-nnkl9k2ljaauv4bh
2012-09-03 14:16:25 +05:30