Commit Graph

133 Commits

Author SHA1 Message Date
Thibault Delavallée 4dd9c631ac [FIX] share: fixed mail data, added password and action if present. Coming from trunk-openchatter-part3-tde branch.
bzr revid: tde@openerp.com-20120629074538-rq82fo9brb1qga2v
2012-06-29 09:45:38 +02:00
Quentin (OpenERP) 25fc3c3ec5 [MERGE] merged main trunk branch
bzr revid: qdp-launchpad@openerp.com-20120628114905-nnnho2mngndimj9b
2012-06-28 13:49:05 +02:00
Quentin (OpenERP) b2af135b03 [MERGE] lp: 974285
bzr revid: qdp-launchpad@openerp.com-20120627143910-whtbesexzaaa1cfh
2012-06-27 16:39:10 +02:00
Antony Lesuisse f17b0eea00 [MERGE] Use Email everywhere
bzr revid: al@openerp.com-20120627131528-u97jw0m7cq2825ll
2012-06-27 15:15:28 +02:00
Jigar Amin - OpenERP d9db3c44df [REN] renamed e-mail, E-mail, E-Mail to email, Email
bzr revid: jam@tinyerp.com-20120625134253-sebauihl53zctcu0
2012-06-25 19:12:53 +05:30
Kuldeep Joshi (OpenERP) 3c50eb017a [IMP] set logging.getLogger(__name__)
bzr revid: kjo@tinyerp.com-20120622064854-5f6fss55k7305e8q
2012-06-22 12:18:54 +05:30
Xavier ALT 3157a06762 [FIX] share: fix error on user creation, missing 'company_ids' raising constraint ValidationError
bzr revid: xal@openerp.com-20120427083059-bziyfqba9la31sx8
2012-04-27 10:30:59 +02:00
Kuldeep Joshi (OpenERP) a498392b47 [FIX]share: convert to string and set group_id
bzr revid: kjo@tinyerp.com-20120417093156-d29vpph8it39sqiw
2012-04-17 15:01:56 +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
Olivier Dony 0a6b44e6ca [IMP] portal: inherit share wizard to auto-create the menu
bzr revid: odo@openerp.com-20110408150951-q41mksjz1khb5zp8
2011-04-08 17:09:51 +02:00
Olivier Dony e165096efd [MERGE] merged RCO portal branch, including more recent trunk
bzr revid: odo@openerp.com-20110408133800-ts9t3tne7ixm09gz
2011-04-08 15:38:00 +02:00
Olivier Dony 6922668a77 [IMP] share: improved shared wizard
New features: can share to groups if user has "Share / User (Extended)"
group. Warning message if user does not have email and cannot share by
email. Names of sharing groups are now hidden in ORM access denied messages.
Better error reporting.
UI: more user-friendly labels, titles. More visibible button in web client.
Bugfixes: better handling of sharing objects with _inherits, can combine
ir.rules if already exist for same (object,group). Button is now hidden
in web client if user is not in "Share/User" group.

bzr revid: odo@openerp.com-20110408133608-vmdrzfeo0dz28wer
2011-04-08 15:36:08 +02:00
Rifakat Haradwala (Open ERP) 9a9c100595 [Merge]: merge with lp:~openerp-dev/openobject-addons/emails-framework-addons
bzr revid: rha@tinyerp.com-20110330092614-sgnniorxit17zvxn
2011-03-30 14:56:14 +05:30
Harry (OpenERP) cf7c73310d [MERGE] merged with trunk addods development branch
bzr revid: hmo@tinyerp.com-20110329122736-78igudbed2jz7lf4
2011-03-29 17:57:36 +05:30
Rifakat Haradwala (Open ERP) 2fe7c51e36 [REM] email.smtp_server: removed email.smtp_server and did changes in email module
bzr revid: rha@tinyerp.com-20110321133156-y57yw6sekshnw9ns
2011-03-21 19:01:56 +05:30
Rifakat Haradwala (Open ERP) 64f9d7e94f [IMP] : base_module_quality, crm, email_template, mail_gateway, sale_crm, share: string formatting
bzr revid: rha@tinyerp.com-20110308112208-40jbv5er9w21xiw0
2011-03-08 16:52:08 +05:30
Yogesh (OpenERP) 659900e4d5 [IMP] add argument in email_send method of addons module.
bzr revid: ysa@tinyerp.com-20110209091848-tb1d9qcj9bz3iq2b
2011-02-09 14:48:48 +05:30
YSA (Openerp) 5140ae0d98 [IMP] add email module depedancy in related module.
bzr revid: ysa@tinyerp.com-20110204062934-yf8in8dzu15vdmeh
2011-02-04 11:59:34 +05:30
YSA (Openerp) bbdac458fd [IMP] call email_send method of email.message object insted of tools.
bzr revid: ysa@tinyerp.com-20110204061819-bb3p94bs7og680je
2011-02-04 11:48:19 +05:30
Olivier Dony f2139f9603 [FIX] share: user m2m for selecting existing users instead of o2m
bzr revid: odo@openerp.com-20110118193022-van29r1hs7qcppng
2011-01-18 20:30:22 +01:00
Olivier Dony 091692fefb [FIX] share: updated share wizard after server changes to ir.ui.menu (dropped create_shortcut() method) + some typos
bzr revid: odo@openerp.com-20110118154056-yzfib31snxn3e5cn
2011-01-18 16:40:56 +01:00
uco (OpenERP) d827b2f6ea [REF]: Added remaining context changes in _constraints. Removed unnecessary checking for context from methods.
bzr revid: uco@tinyerp.com-20101213064309-vg36f1510xv2f8zb
2010-12-13 12:13:09 +05:30
Xavier Morel 78ca098cf7 [FIX] share: login value and dbname key (typo) in the codepath handling sharing to existing users
bzr revid: xmo@openerp.com-20101123215242-glqx7ooqi6eadyhy
2010-11-23 22:52:42 +01:00
Xavier Morel e8ee855426 [ADD] web part of the share module, addition of DB handling to the module's wizard
bzr revid: xmo@openerp.com-20101122131150-603vgxc9dxg28dz3
2010-11-22 14:11:50 +01:00
Xavier Morel e581a46bae [FIX] share: send correct share_root_url to server action, add dbname to share_root_url so user can actually be logged in if server has multiple dbs
bzr revid: xmo@openerp.com-20101122125334-w0cpt1p4s471q1wb
2010-11-22 13:53:34 +01:00
Xavier Morel d452c65969 [REV] alterations to server side of share wizard
bzr revid: xmo@openerp.com-20101122114429-cmi5h10t5iwv9x0l
2010-11-22 12:44:29 +01:00
vda (Open ERP) 6f3ef38b88 [FIX] Fixed share root url with direct access of user.
bzr revid: vda@tinyerp.com-20101122063823-suc6cj5k8cu7y7ac
2010-11-22 12:08:23 +05:30
vda (Open ERP) 15f8f81e05 [FIX] Improved share action method,share url and passed active db in email.
bzr revid: vda@tinyerp.com-20101115103706-vhkrxbnrw73sljmr
2010-11-15 16:07:06 +05:30
Olivier Dony 9566084f45 [FIX] share: corrected config message for share_root_url
bzr revid: odo@openerp.com-20101112162338-mrpfgqm4yy69hyoa
2010-11-12 17:23:38 +01:00
Olivier Dony 3d8cbbdaaf [IMP] share: corrected typo in share URL formatting patterns
bzr revid: odo@openerp.com-20101025143847-lhcdroeyayydh71t
2010-10-25 16:38:47 +02:00
Olivier Dony ad15fa3385 [IMP] share: much more complete implementation of share wizard, pending some improvements + web widget creation
bzr revid: odo@openerp.com-20101017051319-p4xi0epaqmgvwdmr
2010-10-17 07:13:19 +02:00
Rvo (Open ERP) 45a8d54f18 [CLEAN]: removed commented code, fixed proper indentation in dictionary and removed extra spaces at few places
bzr revid: rvo@tinyerp.co.in-20100813122005-qj1l1iumkfmocyvk
2010-08-13 17:50:05 +05:30
Harry (OpenERP) d601d648a7 [IMP] share:
* intersect with read access rights of user running the wizard, to avoid adding more access than current
* copy all rules from groups of the user that is sharing in the many2many of the rules on the new group

bzr revid: hmo@tinyerp.com-20100610191601-ybrv7xk9vb5ixonc
2010-06-11 00:46:01 +05:30
Harry (OpenERP) 2f94616062 [IMP] share:
* Rules/Access rights
* Previous button is removed from wizard.

bzr revid: hmo@tinyerp.com-20100610180032-gyr17c7xow6qx5h7
2010-06-10 23:30:32 +05:30
Harry (OpenERP) f4633e226c [ADD] share module:
The goal is to implement a generic sharing mechanism, where user of OpenERP
can share data from OpenERP to their colleagues, customers, or friends.
The system will work by creating new users and groups on the fly, and by
combining the appropriate access rights and ir.rules to ensure that the /shared
users/ will only have access to the correct data.

bzr revid: hmo@tinyerp.com-20100608114049-5q4q4trmbkizppxt
2010-06-08 17:10:49 +05:30