[REM] account, project, sale, *: remove dead code 'return_label'
Since Odoo 9.0, the `return_label` in url was not working anymore. What it did before 9.0 is add an item in the breadcrumb which once clicked would redirect to the frontend. This was handled in the `do_load_state` of the action manager in JS. We don't need to reimplement that behavior as now we have the 'Go to website' stat button. Thus we remove the code. Closes #36325 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
<xpath expr="//div[hasclass('o_portal_sidebar')]" position="inside">
|
||||
<t t-set="o_portal_fullwidth_alert" groups="sales_team.group_sale_salesman,account.group_account_invoice">
|
||||
<t t-call="portal.portal_back_in_edit_mode">
|
||||
<t t-set="backend_url" t-value="'/web#return_label=Website&model=%s&id=%s&action=%s&view_type=form' % (invoice._name, invoice.id, invoice.env.ref('account.action_move_out_invoice_type').id)"/>
|
||||
<t t-set="backend_url" t-value="'/web#model=%s&id=%s&action=%s&view_type=form' % (invoice._name, invoice.id, invoice.env.ref('account.action_move_out_invoice_type').id)"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<t t-call="portal.portal_layout">
|
||||
<t t-set="o_portal_fullwidth_alert" groups="project.group_project_user">
|
||||
<t t-call="portal.portal_back_in_edit_mode">
|
||||
<t t-set="backend_url" t-value="'/web#return_label=Website&model=project.project&id=%s&view_type=form' % (project.id)"/>
|
||||
<t t-set="backend_url" t-value="'/web#model=project.project&id=%s&view_type=form' % (project.id)"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
<t t-call="portal.portal_layout">
|
||||
<t t-set="o_portal_fullwidth_alert" groups="project.group_project_user">
|
||||
<t t-call="portal.portal_back_in_edit_mode">
|
||||
<t t-set="backend_url" t-value="'/web#return_label=Website&model=project.task&id=%s&view_type=form' % (task.id)"/>
|
||||
<t t-set="backend_url" t-value="'/web#model=project.task&id=%s&view_type=form' % (task.id)"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<xpath expr="//div[hasclass('o_portal_sidebar')]" position="inside">
|
||||
<t t-set="o_portal_fullwidth_alert" groups="sales_team.group_sale_salesman">
|
||||
<t t-call="portal.portal_back_in_edit_mode">
|
||||
<t t-set="backend_url" t-value="'/web#return_label=Website&model=%s&id=%s&action=%s&view_type=form' % (sale_order._name, sale_order.id, action.id)"/>
|
||||
<t t-set="backend_url" t-value="'/web#model=%s&id=%s&action=%s&view_type=form' % (sale_order._name, sale_order.id, action.id)"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<body>
|
||||
<t t-set="o_portal_fullwidth_alert">
|
||||
<t t-call="portal.portal_back_in_edit_mode">
|
||||
<t t-set="backend_url" t-value="'/web#return_label=Website&model=%s&id=%s&action=%s&view_type=form' % (template._name, template.id, request.env.ref('sale_management.sale_order_template_action').id)"/>
|
||||
<t t-set="backend_url" t-value="'/web#model=%s&id=%s&action=%s&view_type=form' % (template._name, template.id, request.env.ref('sale_management.sale_order_template_action').id)"/>
|
||||
<t t-set="custom_html">This is a preview of the sale order template.</t>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
@@ -170,7 +170,7 @@ var WebsiteRoot = publicRootData.PublicRoot.extend({
|
||||
+ '<br/>'
|
||||
+ _.str.sprintf(
|
||||
_t('It might be possible to edit the relevant items or fix the issue in <a href="%s">the classic Odoo interface</a>'),
|
||||
'/web#return_label=Website&model=' + $data.data('object') + '&id=' + $data.data('id')
|
||||
'/web#model=' + $data.data('object') + '&id=' + $data.data('id')
|
||||
),
|
||||
}),
|
||||
}).open();
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</a>
|
||||
<div class="dropdown-menu" role="menu">
|
||||
<a role="menuitem" style="text-align: left;" t-attf-href="/web#return_label=Website&view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{backend_menu_id}"
|
||||
<a role="menuitem" style="text-align: left;" t-attf-href="/web#view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{backend_menu_id}"
|
||||
class="dropdown-item" title='Edit in backend' id="edit-in-backend">Edit in backend</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -457,7 +457,7 @@
|
||||
<button type="button" t-attf-class="btn btn-default dropdown-toggle dropdown-toggle-split" t-att-id="'dopprod-%s' % object.id" data-toggle="dropdown"/>
|
||||
<div class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % object.id">
|
||||
<t t-raw="0"/>
|
||||
<a role="menuitem" t-attf-href="/web#return_label=Website&view_type=form&model=#{object._name}&id=#{object.id}&action=#{action}&menu_id=#{menu or object.env.ref('website.menu_website_configuration').id}"
|
||||
<a role="menuitem" t-attf-href="/web#view_type=form&model=#{object._name}&id=#{object.id}&action=#{action}&menu_id=#{menu or object.env.ref('website.menu_website_configuration').id}"
|
||||
title='Edit in backend' class="dropdown-item" t-if="publish_edit">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -226,7 +226,7 @@ Display a sidebar beside the post content.
|
||||
<div t-if="blog_post.tag_ids" class="o_wblog_sidebar_block pb-5">
|
||||
<div class="d-flex justify-content-between mb-4 border-bottom">
|
||||
<h6 class="text-uppercase pb-2 font-weight-bold">Tags</h6>
|
||||
<a role="menuitem" t-attf-href="/web#return_label=Website&view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{menu or main_object.env.ref('website.menu_website_configuration').id}"
|
||||
<a role="menuitem" t-attf-href="/web#view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{menu or main_object.env.ref('website.menu_website_configuration').id}"
|
||||
title='Edit in backend' id="edit-in-backend">Edit</a>
|
||||
</div>
|
||||
<div class="h5">
|
||||
@@ -239,7 +239,7 @@ Display a sidebar beside the post content.
|
||||
<h6 class="text-uppercase pb-3 mb-4 border-bottom font-weight-bold">Tags</h6>
|
||||
<div class="mb-4 bg-100 py-2 px-3 border">
|
||||
<h6 class="text-muted"><em>No tags definied</em></h6>
|
||||
<a role="menuitem" t-attf-href="/web#return_label=Website&view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{menu or main_object.env.ref('website.menu_website_configuration').id}"
|
||||
<a role="menuitem" t-attf-href="/web#view_type=form&model=#{main_object._name}&id=#{main_object.id}&action=#{action}&menu_id=#{menu or main_object.env.ref('website.menu_website_configuration').id}"
|
||||
title='Edit in backend' id="edit-in-backend">Add some</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1387,7 +1387,7 @@
|
||||
<div t-if="not acquirers" class="mt-2">
|
||||
<a role="button" class="btn-link"
|
||||
groups="base.group_system"
|
||||
t-attf-href="/web#return_label=Website&action=#{payment_action_id}">
|
||||
t-attf-href="/web#action=#{payment_action_id}">
|
||||
<i class="fa fa-arrow-right"></i> Add payment acquirers
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user