Commit Graph
28 Commits
Author SHA1 Message Date
Christophe Matthieu 940e23a7dc [IMP] qweb: t-esc/t-raw use t-options instead of format method
t-field, t-esc and t-raw use the same widgets and options
2016-07-05 18:43:14 +02:00
Christophe Simonis 9fe4cf5f72 [MERGE] forward port of branch saas-11 up to dda0d3d
# Conflicts:
#	addons/product_uos/i18n/lo.po
#	addons/sales_team/models/__init__.py
#	addons/website_payment/views/website_payment_templates.xml
#	addons/website_portal_sale/views/templates.xml
#	openerp/addons/base/ir/ir_qweb.py
2016-06-15 13:10:45 +02:00
Christophe Matthieu 7ede9bcb2d [IMP] base ir.qweb: compile template (and use ast) to improve rendering speed
* The compiled templates are cached per user, lang, inherit context values
* ir.ui.fields: attributes method return an dict, and record_to_html return only the content value of the field
* all rendered text use build_text and all attributes use build_attribute
* t-esc-options is removed and replace by format_value method
* AssetsBundle receive the list files and remains
2016-06-14 09:46:25 +02:00
Damien Bouvy 87717509c0 [FIX] website_payment: fetch default provider + render issue
* Fixes a bug that prevented the system to fetch the default provider
because the default_get call was wrong (wrong model + missing
company_id kwarg)
* Displays the amount as a monetary widget (to do that, the amount
must be sent as a float in the controller)
* Display the acquirer 'pre_msg' field to display eventual fees
2016-06-14 08:53:41 +02:00
Vipul Bhatt 4dfbcecfdb [IMP] website_{portal,portal_sale,project_issue,quote} : add pager for customer documents
This commit adds controller to list documents of customer, with pager and archive
widget to sort documents. Impacted documents are : quotations, sale order,
invoices, and issues.

Portal breadcrumd is improved too : add the home icon, and keep the query
params when using archive widget.

Some editable zones were added to templates, allowing people to customize
their frontend portal.
2016-05-27 10:50:34 +02:00
Denis Ledoux dcd8d65fd1 [MERGE] forward port of branch saas-6 up to 6a306a03be 2015-10-28 14:01:10 +01:00
Nicolas Lempereur feff0c7b64 [IMP] website_payment: visual fix if no payment acquirer 2015-10-15 16:44:57 +02:00
Christophe Simonis 7636b510a2 [ADD] *: CSRF protection in forms and routes
* make CSRF protection the default on all non-SAFE methods
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get the
  CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before hashing/validating
  the CSRF token
* opt-out database manager from CSRF: The super-admin password serves
  the purpose of a CSRF token in the database manager screens.
  There is no request database to obtain the
  secret and generate a CSRF token.
2015-10-01 01:36:50 +02:00
Olivier Dony 87bd9b5832 [FIX] website_payment: wrong view inheritance
"Your Details" section is now in the website_portal.account
template, not in the footer_default anymore.
2015-09-14 17:23:06 +02:00
Damien Bouvy f341ca62ab [IMP] website_payment: generic payment controller
- generate payment from the frontend using a simple form
- send a payment with a simple url
- define a default provider for payments
2015-09-04 16:08:22 +02:00
Damien Bouvy 5f48cb992e [REF] website_portal => website_portal, website_portal_sale
Split of website_portal into a generic (and mostly empty) website_portal and a sales-related website_portal_sale (sales order, quotes, invoices)
This allows other modules to extend website_portal without depending on sales
2015-08-07 01:47:06 +02:00
Antony Lesuisse 4a3a3e5f3a [FIX] payment: Move website_published field to website_payment
We have to keep website_published defined in payemnt so that demo data publish
only payment_transfer for the website_sale tour.
2015-08-06 00:14:24 +02:00
Christophe Simonis a304194936 [MERGE] forward port of branch saas-6 up to 81b5c60 2015-06-25 00:26:31 +02:00
Damien Bouvy 3dafbe9aa8 [IMP] website_payment: module is no longer an empty shell
With this module, you can register payment methods with a nice formatting
2015-06-15 14:57:16 +02:00
Jeremy Kersten d6a30df5cc [IMP] website_payment: add payment method in footer
(optionnal and desactivate by defaut)

Add all acquirers published in the automatic footer
2015-06-10 21:50:50 +02:00
Thibault Delavallée a21495916b [FIX] website_payment: lost reference to payment_acquirer, renamed to payment
bzr revid: tde@openerp.com-20140124123045-klutr02i9t3eeep1
2014-01-24 13:30:45 +01:00
ddm@openerp.com 8c8b20bc66 [IMP] add link to payment acquirers in website settings
bzr revid: ddm@openerp.com-20140123172455-7prrhpxfakgg0zv4
2014-01-23 18:24:55 +01:00
Christophe Matthieu ee370a837c [IMP] website: Removing unnecessary spaces at beginning of line
bzr revid: chm@openerp.com-20131212105821-mqvxb7yc04cj5k2s
2013-12-12 11:58:21 +01:00
Thibault Delavallée fdff0bd361 [FIX] website_payment: fixed forgotten tag in view
bzr revid: tde@openerp.com-20131204174500-4cw5uef8a0xsh0xy
2013-12-04 18:45:00 +01:00
Thibault Delavallée 25ef3916d9 [REM] website_payment: removed unnecessary stuff: this module is mainly not necessayr anymore. Only kepts credit card form, and its js / css / library (jquery.payment) to be able to implement credit card forms and use server2server communications.
bzr revid: tde@openerp.com-20131204171830-yp1ra0ghjnnaeae4
2013-12-04 18:18:30 +01:00
Thibault Delavallée f4728616d1 [REV] Reverted commit 10171, because I would like to keep some HTML in a template. I will re-do the deletion right after.
bzr revid: tde@openerp.com-20131204171429-080i7cqhza7ig6bw
2013-12-04 18:14:29 +01:00
Thibault Delavallée 9a54529ff4 [REM] [REF] website_payment: test pages not necessar anymore. Website_payment now only holds the jquery.payment library and some custom js/css to enable theuse of credit card forms, to be used in server 2 server communications.
bzr revid: tde@openerp.com-20131203135148-ollsv2ljthksmory
2013-12-03 14:51:48 +01:00
Thibault Delavallée 7c372e8f28 [IMP] payment_acquirer_paypal: improvements
- cleaned feedback: same method naming as ogone, cleaned method, now called
by the controller. IPN basically works.
- cleaned controllers
- cleaned test module website_payment a bit about paypal
- added support of custom, to give and receive back custom values with paypal

bzr revid: tde@openerp.com-20131118123314-jkfomek10ncq7mlu
2013-11-18 13:33:14 +01:00
Thibault Delavallée d55b40d3a1 [CLEAN] website_payment: removed dead code in html view
bzr revid: tde@openerp.com-20131115133209-u1z48pmw991zwdc4
2013-11-15 14:32:09 +01:00
Thibault Delavallée 3d73443fcd [IMP] website_payment: form for credit card, using jquery.payment in the module JS file + udpated CSS / SASS
bzr revid: tde@openerp.com-20131112132133-f9nqb7jgy1ovmc5b
2013-11-12 14:21:33 +01:00
Thibault Delavallée c5aea42e12 [IMP] website_payment: wip work to add credit card front-end management + jquery.payment library use
bzr revid: tde@openerp.com-20131108155054-t4wsnvfu5eb0o3hf
2013-11-08 16:50:54 +01:00
Thibault Delavallée b2ea74e4e6 [REF] payment: moved paypal and ogone stuff into their dedicated modules.
Added payment_acquirer_paypal and .._ogone modules. Those modules hold
the model / data / controllers related to the specific acquirer.

Also updated website_payment, to use website.menu instead of custom change
in header, as menus are now editable.

bzr revid: tde@openerp.com-20131107180444-bbzobquqq9o6pctv
2013-11-07 19:04:44 +01:00
Thibault Delavallée f586b49e58 [ADD] website_payment: basically, a module to test
payments. Just to have a basic interface to click and see what happen.

bzr revid: tde@openerp.com-20131107172305-giegilb90zll82x6
2013-11-07 18:23:05 +01:00