[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:
committed by
Jeremy Kersten
parent
ec005bae0e
commit
5ffce116a6
@@ -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
|
||||
# ------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user