summaryrefslogtreecommitdiff
path: root/addons/payment/static/src
AgeCommit message (Collapse)Author
2019-07-24[MERGE] Forward port of saas-12.2 to saas-12.3 up to 860ab5a1c28baMartin Trigaux
closes odoo/odoo#35119 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-23[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123deeMartin Trigaux
2019-07-22[MERGE] Forward port of saas-11.3 to 12.0 up to 06f8f046991Martin Trigaux
closes odoo/odoo#35064 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-22[MERGE] Forward port of 11.0 to saas-11.3 up to eb4700f17f5Martin Trigaux
closes odoo/odoo#35054 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-18[FXI] delivery,payment: translate boolean button termsMartin Trigaux
The terminology of the boolean_button is translated with _t(opt_terms.string_true) which can work only if the variable content is already present in the translation map. This commit adds js files that do nothing but add the terms in the translation map. This way it will be exported by babel js export and the translation will be loaded by the web client Closes odoo/odoo#34774 closes odoo/odoo#34954 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-06-03[FIX] *: correct some javascript errorsChristophe Simonis
Oversight of previous forward-port.
2019-06-03[MERGE] forward port branch saas-12.2 up to 995aa1685eeChristophe Simonis
2019-05-31[MERGE] forward port branch 12.0 up to 8f21148e1a8Christophe Simonis
2019-05-08[MERGE] forward port branch 11.0 up to d01db480872Christophe Simonis
2019-05-07[FIX] payment: prevent duplicate payments with payment tokensJoren Van Onder
When paying an eCommerce order with an acquirer which doesn't redirect (payment_flow: s2s) the "Pay Now" button is correctly disabled after clicking it. This prevents a user from clicking it multiple times and being charged multiple times. When paying with an existing payment token however the button was not disabled and the user gets no feedback his request is being processed. Charging an existing payment token takes a while (~5 seconds with Authorize) and so it's possible users will hit the button multiple times. This disables the button when reusing an existing payment token. Additionally it now uses the correct font awesome icon (fa-lock instead of fa-plus-circle). opw-1981064 closes odoo/odoo#33196 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-05-13[MERGE] forward port branch saas-12.2 up to 243a4ae5cbcChristophe Simonis
2019-05-10[MERGE] forward port branch saas-12.1 up to 330b99f60c0Christophe Simonis
2019-05-09[MERGE] forward port branch saas-11.3 up to 825fee2626cChristophe Simonis
2019-05-17[FIX] payment: do not display postgres operational errorsToufik Ben Jaa
- When processing payments on the payments processing page, `psycopg2.OperationalError` can be raised. We do not want those exceptions to be displayed to the customers, instead we want the polling page to try to process the payments again. This commit hides the display of psycopg2 operational errors. - This commit also fixes the "processing your payments" message being hidden after the first polling, no matter if the processing has succeeded or not. closes odoo/odoo#33462 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-03-21[MERGE] forward port branch saas-12.1 up to 6878c9f3424Christophe Simonis
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-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-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-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-19[FIX] payment, *: BS4, adapt ui of shop/payment page in website.Priyanka Kakadiya
* website_sale, payment_authorize, payment_ogone, payment_stripe, website_sale_delivery (Many bugs were only revealed by BS4, not created) - Align payment method (Ex.Stripe) form attributes in row. - Fix align between radio button and payment method name. - Removed header div from 'billing & shipping'. - Set badges (Ex.free) and align between badges and delivery method name in choose delivery method. - Border subtraction from delivery methods div as already card class has border.
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, replace img-rounded/img-circle classesqsm-odoo
'img-rounded' -> 'rounded' 'img-circle' -> 'rounded-circle'
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-18[REF] *: convert less content to scss contentqsm-odoo
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
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-22[MERGE] forward port branch saas-11.1 up to e750bb6e114Christophe Simonis
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-29[REF] *: convert sass content to less contentqsm-odoo
* note, payment, sales_team, website_forum, website_sale(_options) (prepare for all less -> scss conversion)
2018-01-29[REF] *: rename sass files to less filesqsm-odoo
* note, payment, website_forum, website_sale(_options) This is a simple renaming of sass files to less files. The real convertion will be done in the commit that follows.
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