1. 06 Sep, 2017 15 commits
    • Thibault Delavallée's avatar
      [IMP] account: improve invoice page view on customer portal · e6120eb7
      Thibault Delavallée authored
       * keep query on pdf link so that customers have access to the pdf when
         using the access token instead of having an access rights error;
       * add redirect to record override that allow to take into account
         /mail/view links containing an access token for invoices like what
         is already supported for sale orders;
       * improve action buttons display;
       * reduce headers and better display invoice name and customer address;
      e6120eb7
    • Thibault Delavallée's avatar
      [IMP] account: support error, warning and success codes in customer portal · 1fad5698
      Thibault Delavallée authored
      Purpose is to allow to display error, warning or success messages based
      on some user action like payment. This is done using kwargs in the invoice
      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.
      1fad5698
    • Thibault Delavallée's avatar
      [IMP] sale, website_quote: improve email link and wording computation · 2d4c8103
      Thibault Delavallée authored
      The 'View', 'Accept and Sign', 'Pay Online' buttons are now correctly
      computed based on the sales settings or the online quote settings.
      Indeed it is now possible to sign and/or pay quotations without having
      website_quote module installed.
      2d4c8103
    • Thibault Delavallée's avatar
      [IMP] sale_payment: support payment in sale customer portal · 1925837d
      Thibault Delavallée authored
      This commit adds support of payment in the sale customer portal. This
      is done in the sale_payment module and uses the settings introduced
      previously about online confirmation and payment. This way customers can
      now pay orders without having to rely on online quote mechanism.
      
      Two routes are defined in this commit, one for form-based payments and
      one for server2server-based payment. Please refer to commit 1fdb10f0
      for more details about the new payment form.
      
      Some small modifications are done SO confirmation and invoice generation
      methods to return error codes that can be used in the customer portal.
      As return values were not used in website_sale or website_quote this
      should not impact those modules.
      1925837d
    • Thibault Delavallée's avatar
      [IMP] payment: add new explicit parameters to the payment widget · 06fe263a
      Thibault Delavallée authored
      Purpose of this commit is to ease the use of the payment widget and
      avoid having to perform too much custom code in the various routes used
      when doing payments :
      
       * when instantiating the widget give him its parent element data so
         that parameters given when calling the payment form template are
         automatically present in the widget options;
       * support more parameters when calling the route for form-based acquirers
         including access_token, URLs and callback method;
       * when doing a form-based payment a call to a JSON route returning the
         rendered form is done. Payment widget now uses all data from that
         form including the URL of the acquirer website. This way form-based
         acquirers are really dynamic and values update is easier;
       * remove hidden display of form-based acquirers as all data come now
         from the called JSON route that returns the form;
       * add a warning about partner-id not being set as it is an issue some
         people may encounter;
      06fe263a
    • Thibault Delavallée's avatar
      [IMP] website_quote: use generic portal signature widget · faea6583
      Thibault Delavallée authored
      Online quote can now use the generic signature widget already used on
      the standard sale customer portal. We therefore remove the custom
      widget build in website_quote.
      
      A route already exists to sign quotes; the old route is removed. The
      existing route is overridden so that quotations with template requiring
      payment cannot be signed. This is the expected behavior.
      faea6583
    • Thibault Delavallée's avatar
      [IMP] website_quote: improve quote url management in customer portal · 22734f47
      Thibault Delavallée authored
       * website_quote should not override all sale links from the customer
         portal to replace them by website_quote specific view. Indeed the
         quote view should be used only if the order has an active template
         defined on it;
       * do not override existing columns of the order page view on portal
         with same content;
       * implement redirection at route level by overriding the
         controller order route;
      22734f47
    • Thibault Delavallée's avatar
      [IMP] sale: propagate token use to invoices when viewing order on customer portal · 071451a8
      Thibault Delavallée authored
      Customers can access orders using an access token. Order page view may
      contain links to invoices linked to that order. However currently the link
      does propagate the use of access token and therefore leads to a crash due
      to access rights error. This is improved here by adding the invoice access
      token in the embedded links.
      071451a8
    • Thibault Delavallée's avatar
      [IMP] sale: support quote confirmation and sign in customer portal · a3e048a0
      Thibault Delavallée authored
      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;
      a3e048a0
    • Thibault Delavallée's avatar
      [IMP] sale: add download link on customer portal to access the order report · 3275aacb
      Thibault Delavallée authored
      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.
      3275aacb
    • Thibault Delavallée's avatar
      [IMP] sale: support error, warning and success codes in sale customer portal · 5e619ceb
      Thibault Delavallée authored
      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.
      5e619ceb
    • Thibault Delavallée's avatar
      [IMP] sale, website_quote: update sign, pay and online quote settings · e9948e4f
      Thibault Delavallée authored
       * separate signature and payment option from website_quote template
         feature;
       * add a settings to choose whether to display the confirmation or
         pay buttons in customer portal;
       * simplify settings about website_quote now talking only about
         the module itself;
      
      This commit only adds the settings and parameter. Future commits will
      use those parameters to effectively trigger some features and hide or
      display part of customer portal.
      e9948e4f
    • Thibault Delavallée's avatar
      [IMP] portal: add a generic signature widget to be used in customer portal · 27f0d311
      Thibault Delavallée authored
      This generic widget allow to confirm and sign documents on the customer
      portal. Purpose is to reuse it in sale customer portal and online quotes
      notably. It is made generic to call a route using parameters given to the
      widget. It also supports access token to ease its use in various customer
      portal pages where the customer is not always connected but is granted
      access through an access token.
      27f0d311
    • Thibault Delavallée's avatar
      [FIX] website_portal_sale: fix override not giving correctly parameters to super · 93436f45
      Thibault Delavallée authored
      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 ce9ed600.
      93436f45
    • Parth Gajjar's avatar
      [MOV] marketing_campaign: Move to enterprise · 1c3c3ab9
      Parth Gajjar authored
      According to fp, this outdated and incomplete module will be moved to enterprise to become a fully developed and integrated application.
      1c3c3ab9
  2. 05 Sep, 2017 17 commits
  3. 04 Sep, 2017 8 commits