Commit Graph

28 Commits

Author SHA1 Message Date
Thibault Delavallée fd4f6efe1b [IMP] mail: various cleaning and fixes in the notification email links (wording, missing document name management) 2014-08-29 13:22:51 +02:00
Thibault Delavallée 2e5412fc1d [FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
management to access documents in notification emails, as well as for the
'view quotation' link in portal_sale module.

models: added a get_access_action method: basically, returns the action to
access a document. It uses the get_formview_action by default (form view
of the document). However for some documents we want to directly go to the
website, leading to an act_url action for some documents. This method allows
this behavior.

portal_sale: get_signup_url now uses the mail.action_mail_redirect method
instead of directly redirecting towards a portal menu. This allows to fall
back on a standard behavior.

portal_sale: get_formview_action updated, to match actions tailored for
portal users.

website_quote: get_access_action of sale order updated. If the sale order
has a template defined, the returned action is an act_url (website view
of the quotation), not the form action anymore.

mail: fixed signature + company signature in notification emails. Even without
user signature, the company signature + access link should be correct.

portal: signup url in notification emali was not using the mail redirection
as action. It is now the case.
2014-08-07 16:47:59 +02:00
Thibault Delavallée d3ee65eed6 [MERGE] [IMP] mail: slightly improved doc links in notification emails (shorter, clearer)
bzr revid: tde@openerp.com-20140423125319-kegutder49zzqmri
2014-04-23 14:53:19 +02:00
Fabien Meghazi 9684f07735 [FIX] signup_url_for_action(), use `redirect` url parameter and bring back `action` in fragment
bzr revid: fme@openerp.com-20140311205337-9vasnqx5cudbk3f3
2014-03-11 21:53:37 +01:00
Thibault Delavallée 0d3d0e9563 [IMP] mail: improved link in notification, now of form
Sent from <company> using <openerp:pub>, about <model document_name>, access in <customer portal:partner only>

bzr revid: tde@openerp.com-20140305173610-yw71rophyt3iyfi4
2014-03-05 18:36:10 +01:00
jke-openerp 306dd6e397 [IMP] Add span with class for footer received in mail
[FIX] convert partner_to  from template_mail (string with comma) to recipent_ids (list of partner_id) in model mail_mail

bzr revid: jke@openerp.com-20131219133144-zbt100e8030wd927
2013-12-19 14:31:44 +01:00
Thibault Delavallée cd278d83ab [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522103305-yi5ql1chdx9qxxlx
bzr revid: tde@openerp.com-20130522114236-qi2s3i2dl2lemdvh
2013-05-22 13:42:36 +02:00
Thibault Delavallée 176481a970 [FIX] mail: fixed link in notification email
bzr revid: tde@openerp.com-20130521152657-v48pj2m0692rw9b5
2013-05-21 17:26:57 +02:00
Thibault Delavallée 10176982c4 [CLEAN] Remove dead code left when merging 7.0 branch inside trunk branch
bzr revid: tde@openerp.com-20130426134656-hruyetp4x10g1t0h
2013-04-26 15:46:56 +02:00
Thibault Delavallée a75cc23573 [REF] mail: refactored system to generate links in signatures. A new server action is used that choose to redirect to the document or to the Inbox (Portal or Classic Inbox, depending on the user).
bzr revid: tde@openerp.com-20130417122225-faf0bb5vyhbcx7ys
2013-04-17 14:22:25 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Thibault Delavallée 646c83c250 [IMP] mail_mail: delegated footer modification into a dedicated method called by send_get_email_body.
bzr revid: tde@openerp.com-20130315110421-if39vmvov4loe5u7
2013-03-15 12:04:21 +01:00
Christophe Matthieu 46c52b0650 [IMP] mail: signature
bzr revid: chm@openerp.com-20130131162814-93chvgsc4xorh3g2
2013-01-31 17:28:14 +01:00
Christophe Matthieu 468fed66be [IMP] mail: add a method get_signature_footer to add a good signature on bottom of messages sent with the chatter and invite followers
bzr revid: chm@openerp.com-20130124094241-k9ophrwqhne611il
2013-01-24 10:42:41 +01:00
Thibault Delavallée d67d895220 [IMP] Notifications: link to the document basically in mail module, with basic parameters. Portal improve this.
bzr revid: tde@openerp.com-20130104125754-mmh2n0qcbvn4kd0s
2013-01-04 13:57:54 +01:00
Thibault Delavallée c7a865754d [IMP] auth_signup: added a model parameter for generating URLs. Portal: improved code and url generation for links in send emails.
bzr revid: tde@openerp.com-20130104113241-z4go3ac6qtl23ke8
2013-01-04 12:32:41 +01:00
Thibault Delavallée 4899a0df02 [FIX] Notification link: access rights check was performed on an incorrect model.
bzr revid: tde@openerp.com-20130103162511-w8s6sxjbjfc8iao1
2013-01-03 17:25:11 +01:00
Thibault Delavallée 61ce1e8370 [IMP] portal: email signature: better error catching for access rights.
bzr revid: tde@openerp.com-20130103101103-qbuhqu6sl9l4ta4h
2013-01-03 11:11:03 +01:00
Thibault Delavallée e794672dd2 [IMP] Notification emails: link in signature improved. If access to document: direct link to document. If no document or not access: link to portal.
bzr revid: tde@openerp.com-20130102125902-xp3vcs1ay7oog1ke
2013-01-02 13:59:02 +01:00
Thibault Delavallée 347d0e5b46 [IMP] portal removed access rights of portal user on res_partner and derived tables. Updated several accesses to bypass the security issues. Updated portal tests to have a more complete test scenario.
bzr revid: tde@openerp.com-20121212125518-k0s07niojr8a1xtu
2012-12-12 13:55:18 +01:00
Olivier Dony ddc5d6804e [IMP] portal: unify wording as `Customer Portal` + make footer link translatable + cleanup
bzr revid: odo@openerp.com-20121121100434-wq5julc2njlee7t1
2012-11-21 11:04:34 +01:00
Thibault Delavallée 3027b749ba [IMP] mail: signature in send notifications is now plaintext (as before), but htmlized (not inside a pre, but inside div and p, with entities escaped). Updated mail tests. Same for portal URL. Updated portal tests.
bzr revid: tde@openerp.com-20121107170241-0gjwraxkuhe0fm6p
2012-11-07 18:02:41 +01:00
Raphael Collet 05aaabdbdd [IMP] auth_signup, portal: include a correct login/signup url in partner emails
bzr revid: rco@openerp.com-20121001091441-axamc9xp9nq5ibk2
2012-10-01 11:14:41 +02:00
Raphael Collet 5ceb28cb90 [FIX] portal: fix incorrect external reference in inherited mail.mail
bzr revid: rco@openerp.com-20120918071003-9h02rsu3y6fk595r
2012-09-18 09:10:03 +02:00
Raphael Collet 941cb76283 [IMP] portal: replace model 'res.portal' by 'res.groups' where field 'is_portal' is True
bzr revid: rco@openerp.com-20120914144633-z3xpe7392egz3640
2012-09-14 16:46:33 +02:00
Thibault Delavallée 4efde28e55 [IMP] Portal: generate_portal_url -> generate_signin_url; slughty udpated portal tests to 1. test the generated URL 2. consider it is correct for future tests.
bzr revid: tde@openerp.com-20120913161226-y02gg43lua10s0k4
2012-09-13 18:12:26 +02:00
Thibault Delavallée 01f6ac8d16 [FIX] portal invite wizard: generated URL improvement (partner_id and portal_group_id should be correct now).
bzr revid: tde@openerp.com-20120913103401-waepkmjq8flsu13j
2012-09-13 12:34:01 +02:00
Thibault Delavallée 30fb693c20 [IMP] Portal: override of mail_mail to add the signin link into footer of send notifications.
bzr revid: tde@openerp.com-20120912155300-8ilg2g24yl7qsjfg
2012-09-12 17:53:00 +02:00