[IMP] website_payment, *: new snippet make a donation

*=  website, website_sale, web_editor

This commit add a new snippet donation for the website builder.

PR-63133

task-2398403

Part-of: odoo/odoo#63133
This commit is contained in:
Benjamin Vray
2021-09-03 02:03:14 +00:00
committed by Jeremy Kersten
parent ec005bae0e
commit 5ffce116a6
16 changed files with 817 additions and 7 deletions
+8
View File
@@ -340,6 +340,14 @@ class Website(Home):
t['numOfElFetch'] = attribs.get('data-number-of-elements-fetch')
return templates
@http.route('/website/get_current_currency', type='json', auth="public", website=True)
def get_current_currency(self, **kwargs):
return {
'id': request.website.company_id.currency_id.id,
'symbol': request.website.company_id.currency_id.symbol,
'position': request.website.company_id.currency_id.position,
}
# ------------------------------------------------------
# Edit
# ------------------------------------------------------