Commit Graph

27 Commits

Author SHA1 Message Date
Raphael Collet d6f375df61 [IMP] models: "X in self" is now equivalent to any(X == rec for rec in self)
Fix modules with code like "record.id in other.stuff_ids".
2014-09-04 15:31:04 +02:00
Denis Ledoux 0dcca6cf48 [FIX] point_of_sale: copy/paste error, super must use the apropriate class 2014-08-18 17:49:24 +02:00
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Olivier Dony 2694ed1472 [MERGE] Forward-port saas-3 up to b9275da 2014-08-13 17:33:12 +02:00
Olivier Dony b9275da8a5 [MERGE] Forward-port 7.0 up to 23cffab 2014-08-13 17:30:06 +02:00
Olivier Dony f2788afe92 [FIX] portal_sale: browse data for payment acquirer form with superuser ID
The payment form needs to be rendered for non-employee
users, and may require accessing extra financial data
not available for those users.
2014-08-13 11:50:04 +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 8178669795 [FIX] mail, mass_mailing
- mail: now trigger postprocess_sent_message in every case, being sent or not, as the state
is propagated in the method; udpated all addons accordingly;
- email_template: fixed URL to edit it in website + form view;
- mass_mailing: barchart now send jsonified value;
- mass_mailing: tweaking the form view with all options

bzr revid: tde@openerp.com-20140408124053-o9tb14k6v47s5mjd
2014-04-08 14:40:53 +02:00
Thibault Delavallée 44e8722cc3 [FIX] portal_sale, purchase: fixed inherit of _postprocess_sent_message, now taking a new argument
mail_sent telling whether the email has effectively been sent (because mail.state
is not available du to transient state).

bzr revid: tde@openerp.com-20140319084748-um13u2mr9u2qt23s
2014-03-19 09:47:48 +01:00
Denis Ledoux 78c3646747 [FIX] payment,portal_sale: display payment acquirers of the company of the sale order/invoice
bzr revid: dle@openerp.com-20140306105514-lp0lu6jq955aofv4
2014-03-06 11:55:14 +01:00
Thibault Delavallée 7678ba5bfc [FIX] portal_sale: last occurence of portal.payment.acquirer -> payment.acquirer
bzr revid: tde@openerp.com-20140123162059-6omcrt4a32x7t47c
2014-01-23 17:20:59 +01:00
Thibault Delavallée 2e7b5991b7 [REF] portal, portal_sale, payment: refactored old acquirer in portal
now based on the new implementation of payment.

[REM] portal: removed acquirer model, views and implementation
[REF] portal_sale: now using payment rendering methods
[IMP] payment: added render_payment_block, taken from old
acquirer, that renders all portal_published acquirers.

bzr revid: tde@openerp.com-20140122190022-lef4b3o1tpcua3vx
2014-01-22 20:00:22 +01:00
Olivier Dony 51fe1e63e1 [FIX] portal_sale: re-add auto-subscribe of customer when confirming invoice
It was removed by mistake in commit [1]
when fixing the forward-port of 7.0
to saas-1. Only the mail notification
had to be removed, not the auto-follow
of the customer, which is important
in the portal, otherwise customers
cannot see their invoices.

[1] 8699 revid:chm@openerp.com-20130506135653-7e8nukr68s9255oq

bzr revid: odo@openerp.com-20131001164125-1smk4mi3eulcbkab
2013-10-01 18:41:25 +02:00
Christophe Matthieu 356d18a097 [FIX] An invite email to follow invoice is send to the customer before the real invoice. patch: remove invoice_validate method content of portal_sale
bzr revid: chm@openerp.com-20130506094955-eppzx3fflb3g887j
2013-05-06 11:49:55 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Thibault Delavallée dd8efafad8 [FIX[ portal_sale: fixed second call to amil_mail.send_mail()
bzr revid: tde@openerp.com-20130226173138-3z3lq00nceo46vdp
2013-02-26 18:31:38 +01:00
Thibault Delavallée 35242a6a17 [FIX] portal_sale: fixed call to mail_mail.send_mail()
bzr revid: tde@openerp.com-20130226170353-pnkti0fieicsb9rr
2013-02-26 18:03:53 +01:00
Thibault Delavallée b4e1e32f0a [FIX] portal: fixed various mail_mail records created without specifying the 'type' field; however this may conflict with the context holdign default_type (i.e. opportunity), leading to type values not in the selection field.
bzr revid: tde@openerp.com-20121221115315-qni401mszwrkpvmj
2012-12-21 12:53:15 +01:00
Thibault Delavallée 6a1d87dfb8 [FIX] portal_sale: when confirming an invoice, no invitation emails should be sent.
bzr revid: tde@openerp.com-20130325115430-9s6i1nkko1zfj66i
2013-03-25 12:54:30 +01:00
Raphael Collet e07f8a7519 [IMP] portal_sale: adapt edi email templates
bzr revid: rco@openerp.com-20121213153728-v7yv82x09qtletix
2012-12-13 16:37:28 +01:00
Raphael Collet e65c73bc95 [IMP] portal_sale: refactor and clean up code
bzr revid: rco@openerp.com-20121213145011-2wcif6d2o9dbcqts
2012-12-13 15:50:11 +01:00
Raphael Collet c90e296264 [IMP] portal_sale: move code around, to extend models in one place
bzr revid: rco@openerp.com-20121213143853-uk5ohmyc4tpqc5qu
2012-12-13 15:38:53 +01:00
vta vta@openerp.com f5dffcfd11 [FIX] Fixed type of invoices in online payment.
bzr revid: vta@openerp.com-20121129142146-1c8z7zqrsm9icbym
2012-11-29 15:21:46 +01:00
Olivier Dony 62c64d5c4d [IMP] sale_portal: override default `Send by Email` templates to include portal signup link
bzr revid: odo@openerp.com-20121116170643-usandzkdhi0idn2d
2012-11-16 18:06:43 +01:00
Olivier Dony 52ee9769f6 [IMP] sale_portal: add payment option on invoices, fix state check to display it on sale.order
bzr revid: odo@openerp.com-20121026164803-625usw34bnyzmxqu
2012-10-26 18:48:03 +02:00
Olivier Dony 9cfe9b6112 [IMP] portal,portal_sale: fine-tuning of payment block appearance, added amount, converted paypal example to <form>
bzr revid: odo@openerp.com-20121025113502-fye11iuur4x0ewm2
2012-10-25 13:35:02 +02:00
Olivier Dony 21e48c3b96 [ADD] portal_sale: integrate payment acquirer options in sale.order forms
bzr revid: odo@openerp.com-20121024131647-hfqgjpftwgygx976
2012-10-24 15:16:47 +02:00