Commit Graph
15 Commits
Author SHA1 Message Date
Lucas Perais (lpe) bd4b50f75a [FIX] account*, sale*, website_event, portal: public user not necessarily in right company
Have the main company (A) with the public user
Have an invoice in company B

Make a brand new browser access the invoice with the token

Before this commit: the token link ended up asking the customer to login,
eventhough it wouldn't if the invoice were in company A

After this commit: the whole payment with access token flow works as expected.

OPW 1879999
closes #26744
2018-09-18 11:02:58 +02:00
Olivier Dony 7836b8811b [FIX] sale*: properly mark method as @classmethod
When inheriting a @classmethod, the override needs to have the
@classmethod decorator as well, otherwise calls will fail with a
TypeError
2018-03-02 18:27:18 +01:00
Lucas Perais (lpe) d2f9994e92 [FIX] sale, website_quote: right display of confirmation mode
Create a quotation in sign confirmation mode.
Send it by email
Follow the link

Go the quote's user's portal
Go to the quotes menu, and enter the right SO

Before this commit, although the confrmation mode of a SO
was rightly computed, it was badly retrieved and displayed.
The button on the email was 'accept and pay'
On the portal, the form view of the SO displayed 'pay now'

After this commit, in both cases it displays 'accept and sign' or the like

OPW 806554

related to #22390
2018-02-08 10:32:00 +01:00
Jérome Maes 932c0d2301 [FIX] website_quote: allow to sign quotation even when customer portal is not configured 2017-09-27 17:32:59 +02:00
jpr-odoo 23d7c53424 [FIX][IMP] portal, sale: fix and improve UX for signature form in customer portal
* set height for draw signature when user want to accept order to avoid
   various display issues;
 * fix name input not being displayed as error if trying to sign with a
   void partner name;
 * no more show 'Accept & Sign' button if customer signed document;
 * update message string for success message after signature;
 * add an option to specify the signature button label and use it in
   sale customer portal;
 * improve return of signature route to return more specific error
   messages;

This commit contains squashed code from @rop-odoo .
2017-09-27 13:02:24 +02:00
Dhaval Suthar 896487c063 [FIX] sale: fix and improve behavior of sale customer portal
* display canceled or done status of quotations on quotation page
   view in order to ease user navigation;
 * allow to filter on state;
 * fix breadcrumb for canceled quotations, currently telling 'Sales
   Orders' instead of 'Quotations';
 * display order shipping address only if multi address group
   is activated;
 * display order expiration date on sale order customer portal;
 * when signed, add help message on disabled 'Sign' button telling
   when and by who the order has been signed;
 * fix download button display and alignment in quote template

This commit contains squashed commits coming from @jpr-odoo and
@abh-odoo .
2017-09-27 13:02:24 +02:00
Olivier Dony bb0404ea30 [IMP] website_mail: simplify helpers for external post
After removing the `sha_in` params a while ago, we get rid of
the deprecated `token_field` option.

- Make `token_field` a model attribute, so that each model can easily
  define the token field that should be used, and it does not need
  to be passed around all the time anymore.

- Rename `_special_access_object()` to `_has_token_access()`, much more
  readable since it returns a bool

- Do not forward the `attachment_ids` keyword arg to message_post,
  as it sometimes contains unrelated IDs (the helper is not meant
  to post attachments anyway)

- Update callers accordingly
2017-09-21 23:42:45 +02:00
Thibault Delavallée a3e048a001 [IMP] sale: support quote confirmation and sign in customer portal
Purpose is to allow customers to accept and confirm orders on the
customer portal without having to rely on advanced website_quote
(online quotation) features. Including :

 * add quote confirmation route;
 * add support in customer portal using the newly-introduced signature
   widget;
 * add action button on the order page view;
2017-09-06 10:39:05 +02:00
Thibault Delavallée 3275aacb27 [IMP] sale: add download link on customer portal to access the order report
This commit also adds a route to have the sale order report. It supports
access token so that email links already enables the download of the
pdf.
2017-09-06 10:38:43 +02:00
Thibault Delavallée 5e619ceb20 [IMP] sale: support error, warning and success codes in sale customer portal
Purpose is to allow to display error, warning or success messages based
on some user action like signature or payment. This is done using kwargs
in the order view route. Codes are added in URL and message display has to
be managed in the template itself. Inheriting modules and/or new features
will have to add their specific message according to the error, warning
or success messages they want to support.
2017-09-06 10:38:10 +02:00
Thibault Delavallée 93436f45f9 [FIX] website_portal_sale: fix override not giving correctly parameters to super
It does not have any impact in current stable as the inherited
method does not use it. However if another addon inherit it
it will not receive access_token depending on call chain. Let
us fix it.

This is a manual forward-port of ce9ed600ca.
2017-09-06 10:36:16 +02:00
Thibault Delavallée 2ec4dbeb49 [MOV] sale: put all assets in same file and rename portal templates 2017-09-04 11:15:38 +02:00
Thibault Delavallée 44c062a2f8 [REF] sale: portal: factorize some portal code to ease future additions
* get order access right check in its own method. Purpose is to allow
   its use in other methods and avoid writing same code several times;
 * factorize order customer view values computation. Purpose is to allow
   adding values when displaying the page through inheritance. For example
   to add available payment means in sale_payment.
2017-09-04 11:15:30 +02:00
Thibault Delavallée 0fad594dc1 [IMP] http_routing, account, sale: remove pager from request
Use the pager through import directly.
2017-08-09 17:46:22 +02:00
Thibault Delavallée 9381334f6e [MOV] sale_*: move sale customer portal to sale
Customer portal is now a feature coming directly with sale module. As
it uses a simple website renderer customization and advanced website
features are not available and depends on having website module
installed.
2017-08-08 15:36:25 +02:00