Commit Graph

76 Commits

Author SHA1 Message Date
Kuldeep Joshi (OpenERP) 3c50eb017a [IMP] set logging.getLogger(__name__)
bzr revid: kjo@tinyerp.com-20120622064854-5f6fss55k7305e8q
2012-06-22 12:18:54 +05:30
Thibault Delavallée a936f27674 [FIX] share and mail.thread: tweaked access rights. (TODO: second part of patch: checking access rights to email should check those from its master record, like attachments. Will be done shortly after the CD.)
bzr revid: tde@openerp.com-20120410160100-lh4jr3ubkvemggvk
2012-04-10 18:01:00 +02:00
Thibault Delavallée 3d6c40394a [IMP] Improved share-invite mechanism. Also slighty refactored code in emails sending.
bzr revid: tde@openerp.com-20120328090052-v73mn3tdnjat4kkb
2012-03-28 11:00:52 +02:00
Thibault Delavallée 3a1e1ce480 [IMP] share: update module to accept an 'invite' action, that is alike share, but used for OpenSocial. Share now also adds the 'invite' feature to OpenSocial.
bzr revid: tde@openerp.com-20120320180917-gj2c0tetyerfuprr
2012-03-20 19:09:17 +01:00
Olivier Dony 6f874454bf [FIX] share: create sharing rule even when no other ir.rule exists
lp bug: https://launchpad.net/bugs/909150 fixed

bzr revid: odo@openerp.com-20120215153440-c6ojz409kwzaus5w
2012-02-15 16:34:40 +01:00
Fabien Pinckaers b49bb75a26 [IMP] no email required to share a link or embed
bzr revid: fp@tinyerp.com-20111228210901-sywx5rab63d10lsd
2011-12-28 22:09:01 +01:00
Olivier Dony a42e668e77 [FIX] share: fix URLs - `key` parameter is now required
bzr revid: odo@openerp.com-20111223162421-nn7onw3itb6noa6p
2011-12-23 17:24:21 +01:00
Antony Lesuisse 4a99f28a02 [FIX] share email warning and menu tips
bzr revid: al@openerp.com-20111222140135-2gh7pwmr4ir2qb04
2011-12-22 15:01:35 +01:00
Christophe Simonis 96dbcce7ce [FIX] portal and share wizard
bzr revid: chs@openerp.com-20111221161135-l8e1yj1azkqy1c2g
2011-12-21 17:11:35 +01:00
Christophe Simonis 5c92c476d3 [FIX] share: correct login url + add action to embed url
bzr revid: chs@openerp.com-20111220150714-dltvf2p1dedjo97h
2011-12-20 16:07:14 +01:00
Christophe Simonis cdeffb44b5 [FIX] share: fix embed url
bzr revid: chs@openerp.com-20111219163836-n39w32ly2ai7uosu
2011-12-19 17:38:36 +01:00
Christophe Simonis 75fdf278b6 [FIX] share: do not hardcode the server url
bzr revid: chs@openerp.com-20111219111525-hlkww0n4e9ejpfhh
2011-12-19 12:15:25 +01:00
Raphael Collet 30233c37b7 [MERGE] lp:903060 (share: disable shortcuts when creating share users)
bzr revid: rco@openerp.com-20111219103328-3a437qz2mjck3vz6
2011-12-19 11:33:28 +01:00
Antony Lesuisse c3c7712e13 [IMP] separate embed and email actions
bzr revid: al@openerp.com-20111218154332-28ecj6xek6dixthp
2011-12-18 16:43:32 +01:00
Antony Lesuisse b818bd00e7 [IMP] improve user_type
bzr revid: al@openerp.com-20111218150704-wbemuzili2mw9150
2011-12-18 16:07:04 +01:00
Antony Lesuisse 94c5c147cd fix typo embed code
bzr revid: al@openerp.com-20111216164018-l5ht2rzsec1na74f
2011-12-16 17:40:18 +01:00
Antony Lesuisse d3795a63b1 simplify embed code
bzr revid: al@openerp.com-20111216163540-o13b84nsrj5kdulu
2011-12-16 17:35:40 +01:00
Antony Lesuisse c4edd73361 [MERGE] trunk
bzr revid: al@openerp.com-20111216154912-h94xe3zti4a3eo2n
2011-12-16 16:49:12 +01:00
Antony Lesuisse b988821d00 [IMP] shorter embed code
bzr revid: al@openerp.com-20111216153653-bdofkkan141xup3x
2011-12-16 16:36:53 +01:00
Olivier Dony 78bb2dd689 [IMP] share: use the builtin Model._all_columns now that it has been added
bzr revid: odo@openerp.com-20111214171049-jdbso53n3wqc8kjn
2011-12-14 18:10:49 +01:00
Olivier Dony 7b4917e780 [FIX] share: users may have an empty signature
lp bug: https://launchpad.net/bugs/902106 fixed
lp bug: https://launchpad.net/bugs/902898 fixed

bzr revid: odo@openerp.com-20111214145200-9ly20dra7n2s1l6p
2011-12-14 15:52:00 +01:00
Olivier Dony efc5cabe7a [FIX] share: sent share notifications immediately w/o queuing
lp bug: https://launchpad.net/bugs/903058 fixed

bzr revid: odo@openerp.com-20111214143321-l9r6mdqe2fc7m4t0
2011-12-14 15:33:21 +01:00
Christophe Simonis f2e5898992 [FIX] share: EmbedClient -> EmbeddedClient
bzr revid: chs@openerp.com-20111214130721-8tsba71wotmg97qv
2011-12-14 14:07:21 +01:00
Christophe Simonis d462f2e800 merge upstream
bzr revid: chs@openerp.com-20111214112712-wg6r5bhehcau701o
2011-12-14 12:27:12 +01:00
Nimesh (Open ERP) a66f81244b [FIX]share: noshortcut added when share user creted
bzr revid: nco@tinyerp.com-20111214063557-ydtz3tctlf0ul2f8
2011-12-14 12:05:57 +05:30
Christophe Simonis a6438cae30 [IMP] share: add option to generate embedded code
bzr revid: chs@openerp.com-20111201160040-15s4tn1pxixvmvnu
2011-12-01 17:00:40 +01:00
Numerigraphe - Lionel Sausin 779fa653c1 [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-11-22 09:51:38 +01:00
Christophe Simonis d6ebd88ba5 [IMP] share: only show current view when selecting "readonly" mode
bzr revid: chs@openerp.com-20111115155630-4ut72jrc8111ivm4
2011-11-15 16:56:30 +01:00
Christophe Simonis 9f964ca29d [IMP] share: share_url_template is read from ir_config_parameter
bzr revid: chs@openerp.com-20111014094324-wpj3265vwinel3rj
2011-10-14 11:43:24 +02:00
Christophe Simonis b46ef4b960 [FIX] share: correct function fields labels
bzr revid: chs@openerp.com-20111010145406-0k4au407iwv9e31n
2011-10-10 16:54:06 +02:00
Christophe Simonis a1e5797727 [FIX] share+portal: fix share wizard.
[IMP] share wizard: share_root_url and share_url are now function fields

bzr revid: chs@openerp.com-20111010142549-uvco15xdf2198e0x
2011-10-10 16:25:49 +02:00
Christophe Simonis dca92e2cc1 [FIX] share: correct default value
bzr revid: chs@openerp.com-20111007153719-2lq8ntxom3y8g2xj
2011-10-07 17:37:19 +02:00
Olivier Dony 807955bfdc [FIX] share: remove context argument passed to cached method, now deprecated
bzr revid: odo@openerp.com-20110915103040-laoviibia601ybqj
2011-09-15 12:30:40 +02:00
Olivier Dony 50507512cb [MERGE] latest trunk
This was a helluva merge, with hundreds of conflicts resolved manually!!
I hope I did not break too many things, but a full review of the mail-related
features (where most of the conflicts occurred) must still be done before
this feature branch can be merged.

bzr revid: odo@openerp.com-20110809234428-3dsvxrt6t54ju0cf
2011-08-10 01:44:28 +02:00
Olivier Dony fe71f70e90 [FIX] share: urlescaping + typo
bzr revid: odo@openerp.com-20110624101727-jz3xfab71sio0afq
2011-06-24 12:17:27 +02:00
Olivier Dony 5cfa1974c6 [IMP] share,portal: improve sharing with portal group
Use a new strategy: documents are shared with a
temporary group, and when everything is setup,
the access rights are copied to the groups we are
sharing with, and the rules are transferred to them.
The temporary group is then deleted.
This works well for multiple shares, are both
access rights and rules are additive in this 
fashion.

bzr revid: odo@openerp.com-20110619170000-epst11y4aaichblh
2011-06-19 19:00:00 +02:00
Olivier Dony 981b3fa3e1 [FIX] share,portal: some quirks in share/portal integration
bzr revid: odo@openerp.com-20110619130345-2yf5t8zbqw2zcems
2011-06-19 15:03:45 +02:00
Olivier Dony b100984721 [IMP] share: more lenient context processing during cleanup for share
bzr revid: odo@openerp.com-20110619130102-1n3prfprr95vnqf8
2011-06-19 15:01:02 +02:00
Olivier Dony 2fc274eced [IMP] portal,share: moved option for group share to portal module + existing users option. Fixed obj1/2/3 classes to skip obj0 during processing of relationships.
bzr revid: odo@openerp.com-20110617092305-2c55z5hs2uickv5o
2011-06-17 11:23:05 +02:00
Olivier Dony 2b58c1ae22 [IMP] share: log sending of notification emails
bzr revid: odo@openerp.com-20110614122309-1bmdfol6rw18kw1g
2011-06-14 14:23:09 +02:00
Olivier Dony 95251e5036 [FIX] share: avoid creating ir.rule when o2m has a reverse relationship that is not a real m2o
This case happens rarely, but for example mailgate.message has
an integer res_id column, and some models (eg crm.lead) have
o2m columns that use it as a pseudo-m2o, with the help of a
filter (domain) on the model.
Share wizard will not create ir.rules that use these kind of
pseudo-m2o fields are real m2o.

bzr revid: odo@openerp.com-20110614121822-8936k24j37jbgiwt
2011-06-14 14:18:22 +02:00
Olivier Dony aa2285d3a0 [IMP] share: add optional message, simplify screens, auto-send email
bzr revid: odo@openerp.com-20110614110718-b1g040q5mk17htrj
2011-06-14 13:07:18 +02:00
Olivier Dony fe4680f6e9 [IMP] share: update local rule creation to take advantage of new ir.rule combinations
In v6.0, local rules in the same group were AND'ed, so
we had to compute rule combinations. Now we can simply
add a new rule, and it will be automatically OR'ed.

bzr revid: odo@openerp.com-20110601131146-7pek6a7grxiij03r
2011-06-01 15:11:46 +02:00
Olivier Dony c34a218159 [IMP] share: add option to specify shared access name
bzr revid: odo@openerp.com-20110601130655-9y63unr6eus9f20e
2011-06-01 15:06:55 +02:00
Olivier Dony 01861bd44e [IMP] share: add option to name the sharing access + improve button names
bzr revid: odo@openerp.com-20110601081049-ern1g43gg6l267yd
2011-06-01 10:10:49 +02:00
Olivier Dony 685e29d9d3 [FIX] share: current user restrictions were not properly copied
This could lead to security issues, because shared users could
have more access rights than the user sharing the data.
The mechanism was working to copy them, but unfortunately not
working.

bzr revid: odo@openerp.com-20110505170756-ihkkzxy0485t43bd
2011-05-05 19:07:56 +02:00
Olivier Dony 085bf6d02f [FIX] share: share users with multi-shares should keep same home action
Previously they were assigned the generic menu as home action
but that is not very relevant because it does not contain their
shortcuts most of the time, and also this breaks the web client
in v6.0 as it does not support the Menu as home action.

bzr revid: odo@openerp.com-20110505170720-k0p7pjfkyadzc4pg
2011-05-05 19:07:20 +02:00
Olivier Dony 17eb9f1997 [FIX] share: use empty domain for shared actions, as ir.rules do enforce the filtering.
We must not use a normal domain for the shared action,
because it may be constructed with records the user may
not see (e.g. sharing tasks from a certain project does
not give right to see the project itself.)
Evaluating the domain of an action requires rights that
the user will not have. Moreover, this is useless because
ir.rules are created with each share access to filter
appropriately the records, and they are evaluated as 
root user without risk of failed access right.

bzr revid: odo@openerp.com-20110505170623-62zlf9mchq5zvqw2
2011-05-05 19:06:23 +02:00
Olivier Dony ae4d224302 [FIX] share: multi-sharing with an empty filter was not working
An empty share filter should be translated as a dummy ir.rule
to make sure it is properly combined with other rules after
multiple shared access are granted to the same user.

bzr revid: odo@openerp.com-20110505170525-obqif2mxnsod5mvo
2011-05-05 19:05:25 +02:00
Olivier Dony 3b5aa70813 [FIX] share: typo
bzr revid: odo@openerp.com-20110411235216-3tij6tlw7064dn7s
2011-04-12 01:52:16 +02:00