summaryrefslogtreecommitdiff
path: root/addons/payment/static/src/js
AgeCommit message (Collapse)Author
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-21[MERGE] forward port branch saas-12.1 up to 6878c9f3424Christophe Simonis
2019-03-06[REF] payment: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-03-12[FIX] payment: wire transfer redirectionJohan Demaret Rivarola
When sequentially paying multiple SO with wire transfer, the user was always redirected to the first paid SO. This commit fixes this issue by redirecting to the most recent one. Technical choice: payment_transaction rows are ordered by id desc so we can trust the first one will be the most recent on the client side (in the scope of this diff). opw-1949629 Closes #31754 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-02-26[REF] *: use 'frontend' system in non-website appsqsm-odoo
* account, auth_signup, payment, portal, project, sale, sale_management, web_unsplash, website, website_mail, website_rating, website_sale This commit does probably not do what is stated for all non-website apps but it is a first step. It also uses the system in apps which could have already used it but did not. Part of https://github.com/odoo/odoo/pull/29442 task-1932066
2019-01-09[IMP] payment, website_sale_delivery : payment acquirer and delivery method ↵Darshil Trivedi
whole part should be clickable and cursor pointer on mouse hover. Purpose: user click anywhere from panel box to select delivery method and payment method. Related task ID 1918459 closes odoo/odoo#29604
2018-11-28[FIX] portal, *: stop breaking behaviors on dblclickqsm-odoo
* payment, website_sale This commit solves the problem described in the issues mentioned below by using the new system introduced by the parent commit. That new system is even more integrated with website "animations" but the mentioned issues' features are not yet converted to use those (this will be a master task to make "Website Widget" be defined in portal to use all of those integrated features). This commit however converts an already protected behavior of website_sale using that "animation" integration. Closes https://github.com/odoo/odoo/issues/27976 Closes https://github.com/odoo/odoo/issues/28704
2018-10-09[FIX] payment: fix invalid param on rpc failNikunj Ladava
This commit is related to Task ID 1891721 closes odoo/odoo#27555
2018-09-26[FIX] payment: always redirect when using wire transferDemaret Rivarola Johan
The user should always be redirected when paying with wire transfer. This is because the landing page displays useful data such as the communication. Closes #27194
2018-09-25[FIX] payment: remove ES6 specific constructGéry Debongnie
Using the arrow syntax from ES6 is nice, but it breaks the doc build process.
2018-09-19[IMP] payment_*: payment acquirers error handlingToufik Benjaa
This commit aims to improve the user experience when using payment acquirers. There currently are no error feedback with some acquirers, which leaves the user wondering what is going on and what is the real status of its payment. In some cases, the user is currently being redirected to the home page even though the payment has failed. We want to make it more obvious to the user that something unexpected has happened by redirecting to an intermediate page that will provide good feedback on payments status. Another goal of this commit is to order acquirers by sequence instead of by flow and to select the first acquirer by default. This feature was already implmented in commit fe294fd43e521bd2d339e962f43acf46c3d4cb97, some UI adaptations were needed though. Related to task #36680 Closes #26958
2018-08-14[MERGE] forward port branch saas-11.4 up to dabe59df9c8Christophe Simonis
2018-08-14[MERGE] forward port branch saas-11.3 up to 27d8daf8a75Christophe Simonis
2018-08-14[MERGE] forward port branch 11.0 up to 51225c9b9f2Christophe Simonis
2018-08-10[FIX] payment: display error on payment acquirer returnLucas Perais (lpe)
Before this commit, when authorize (for example) returned a business error the error wasn't displayed to th ecustomer After this commit, it is. OPW 1866408 closes #26279
2018-07-31[FIX] payment: forward port of 8be798375eadefb6b66e3065a1af3f5eef9ab78aNikunj Ladava
Parameters of the rpc.fail is changed because of this commit : https://github.com/odoo/odoo/commit/fc5d030ef2695f7d2daeb87db9697240be4b99d4#diff-c52e0c611c3001980c7a7be0f6395e60R80 This commit is related to Task ID: 1869500 Closes #26052
2018-07-31[FIX] payment: fix rpc.fail in payment formNikunj Ladava
Parameters of the rpc.fail is changed because of this commit : https://github.com/odoo/odoo/commit/fc5d030ef2695f7d2daeb87db9697240be4b99d4#diff-c52e0c611c3001980c7a7be0f6395e60R80 This commit is related to Task ID: 1869500 Closes #26052
2018-07-27[REF] *: BS4, adapt formsqsm-odoo
The 'form-horizontal' class have been removed; the '.form-group' elements must now use the 'row' class for an horizontal layout. The 'control-label' class was renamed to 'col-form-label'. The 'help-block' class was renamed to 'form-text'. The 'has-error' and 'has-success' classes have been removed and replaced by a new system using the :valid and :invalid pseudo-classes, when a parent has the 'was-validated' class. While this system is great, it is not straightforward to use it in Odoo. Fortunately, BS4 provides the 'is-valid' and 'is-invalid' classes as fallback. This commit replaces the 'has-error' and 'has-success' classes by 'o_has_error' and 'o_has_success' classes (for JS compatibility) and use the 'is-*' fallback classes. (The 'has-warning' class has no equivalent but was unused in Odoo anyway).
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-05-23[REF] account,payment(_*),sale*: downgrade transactions into debug itemsqdp-odoo
It was very confusing for the user to distinct account.payment and payment.transaction. From now on, the transactions are technical objects and, in the backend, we only refer to it in log messages (Front end will be adapted in the same fashion later on). They are hidden in debug mode in accounting\configuration\payments as their purpose is now purely technical/log This commit also aims to reduce the gap between the accounting app and the transactions: account.payment objects are created/validated upon completion of transaction. To ease the capture/voiding of pending transactions, the related buttons are now displayed directly on the SO/invoice instead of the transactions. Was task: https://www.odoo.com/web#id=35857&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720 Was PR #24043 [FIX] add domain based on journal to payment tokens Was opw: https://www.odoo.com/web?debug#id=1828206&view_type=form&model=project.task&menu_id=5200
2018-04-16[MERGE] forward port branch 11.0 up to ad825b673b5Christophe Simonis
2018-04-10[FIX] payment: make the error handler works for non s2s acquirerRomain Derie
Before this commit, error handling would not work for non s2s payment acquirer since it would always check for `o_payment_add_token_acq_[id]` in the DOM but this is only present for s2s acquirer. Non s2s acquirer got `o_payment_form_acq_[id]` in the DOM. Now, we retrieve the correct DOM element depending if s2s is enabled for this payment acquirer or not. task-1825701
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-14[FIX] payment: Payment integration with Authorized.net making double ↵Goffin Simon
transactions When making a payment with authorize.net by clicking on "Pay Now" in the shop, it was possible to send several transactions for the same SO because the button "Pay Now" was enabled before being redirected. opw:1819588
2018-02-21[MERGE] forward port branch 11.0 up to dbb713c2f83Christophe Simonis
2018-02-20[FIX] payment: Payment form not implemented on /website_payment/paytbe-odoo
The generic payment form introduced in 11.0 has changed the way we collect payment and so does the code. The route /website_payment/pay hasn't been changed to support the new payment form. This commit fixes this. It also fixes a bug for when a customer tries to create two transactions with the same reference.
2018-01-25[MERGE] forward port branch 11.0 up to eefe879a37aChristophe Simonis
2018-01-24[FIX] payment: save the token if the option is checked in the form mode of ↵fda-odoo
the related acquirer. The function was searching for the wrong acquirer in the page, so check the option was without effect
2018-01-24[FIX] payment: display a better button for "add new card"fda-odoo
it removes the + while the rotating spin is showing and display the + icon after the loading
2018-01-24[FIX] Payment, payment_authorize: show an error if customer doesn't have a ↵fda-odoo
complete profil on authorize.net payment. If the user has no Zip code, country or city, authorize refuse the payment, but Odoo doens't show any error. The commit invite the user to log in in this case or to fill his missing information
2018-01-24[FIX] payment: improve invalid input management on payment formfda-odoo
The different fields weren't correctly checked on a payment form. This commit improve the error messages and display it for each field. It adds too a verification on the fields in the case of the field are filled automatically by Firefox on a refresh (F5).
2018-01-03[MERGE] forward port branch 11.0 up to fe22a0f9ca9Christophe Simonis
2017-12-19[FIX] payment: consider the "Save my payment data" optionqsm-odoo
Before this commit, the option was ignored. Indeed "checked" is a DOMElement property, not a jQueryElement's one. See https://github.com/odoo/odoo/issues/21321
2017-12-19[FIX] payment: properly allow `PaymentForm` extensionsqsm-odoo
Commit https://github.com/odoo/odoo/commit/be650c5979d6d427ad79bc23f0edc1d10290f881#diff-b448c1be5e302f4819079161e4fe3de9L369 added a `require` in the middle of a file, making the whole file require the DOM to be ready. This was not really a problem as the module did not return anything... until https://github.com/odoo/odoo/commit/d2815c474d7ab24a06f5365d967a602119252b95 Proper way to fix this would be to split the module in two parts, one requiring the DOM to be ready and not the other one. However, this commit chose to do a fix as stable as possible. See https://github.com/odoo/odoo/issues/21702 (and https://github.com/odoo/odoo/issues/21321)
2017-12-06[MERGE] forward port branch 11.0 up to f96a797fe62Christophe Simonis
2017-12-04[FIX] payment: return widget referenceGéry Debongnie
This file, like many others, does not return a reference to its main widget, which implies that it cannot be modified/extended. This may be fine for Odoo itself, but some other may (and do) need to extend/include this widget.
2017-12-01[FIX] payment: display error messageAtchuthan
The error message was not displayed as out of the paragraph block Closes #21342
2017-11-28[MERGE] forward port branch 11.0 up to 8fb25e185bbChristophe Simonis
2017-11-22[FIX] payment: Cannot add a new card from My Account portalGoffin Simon
Steps to reproduce the bug: Setup Authorize.net test account, then go to My Account from portal and select "Manage your Payment Methods" and add a new card. Bug: It raised "Please fill all the inputs required." opw:782716
2017-11-16[MERGE] forward port branch 11.0 up to d279a3e6d57Christophe Simonis
2017-11-14[FIX] payment: correctly display additional payment icons when clicking on ↵jpr-odoo
"and more" in payment form Instead of being redirected to the top of the page. Which is probably not good uzabilitiouaïze.
2017-10-27[MERGE] forward port branch 11.0 up to e918271f760Christophe Simonis
2017-10-27[FIX] payment_stripe: fix stripe payment formtbe-odoo
- Before this patch, stripe doesn't get displayed. It was a bug related to the fact that stripe doesn't respect how the generic payment form works. So to make it work, we were relying on small hacks that got broke by changes on the payment form. To fix the bug we are no longer adding an event to the pay button of the payment form, instead we listen all the changes made to the DOM and detect if a form with an attribute 'provider' set to 'stripe' is added. If so, we open up the Stripe payment form. - Fix ACL issue when trying to pay with Stripe on eCommerce without being logged. Closes #20202 opw-776200
2017-10-18[FIX] web,*: replace core.debug by config.debugKhoi Nguyen
2017-09-06[IMP] payment: add new explicit parameters to the payment widgetThibault Delavallée
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;
2017-09-04[CLN] payment: lint newly-introduced payment formThibault Delavallée
This commit performs just some linting in order to ease code reading and prepare future updates. * extract duplicate variable computation; * link spaces and indentation; * light renaming to ease code understanding;
2017-08-31[FIX] payment: fix issue about required fields in payment formThibault Delavallée
It seems like even a correctly-filled field triggers an empty input error because variable about empty error is always True.
2017-08-29[IMP] Fixing the code to fit the reviewstbe-odoo
2017-08-29[IMP] payment_stripe: Compatible with the new payment formtbe-odoo
- Stripe checkout form is now compatible with the new payment form. - Fixed a typo on a currency code.