diff options
| author | Jeremy Kersten <jke@odoo.com> | 2019-06-13 09:26:39 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2019-06-13 09:26:54 +0000 |
| commit | f727cd2645deeb43bcfe1e5643dd3477a6076ab9 (patch) | |
| tree | eb430a54ce1cbfaad60cb7f526507e040e19059a /addons/web/static/src/xml | |
| parent | 22437e331a60c81a80d619c075a9d516e980c078 (diff) | |
[IMP] base, model, website[*]: add get_base_url helper
Before this commit, when we want to make an external url, we need to know
if the record is related to a specific website or not, and choose base_url
or website domain.
Now each model have a fonction get_base_url (public to be callable from email
template, ...) and website override this function to add the website domain if
the record is website specific.
closes odoo/odoo#34089
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
