Skip to content
Snippets Groups Projects
Commit af3f6e59 authored by amoyaux's avatar amoyaux Committed by Arnold Moyaux
Browse files

[FIX] stock : webplanner link to product does not work.


In the planner the url are generated by prepare_backend_url that takes
an action's xml id as argument. The id passed should have the format
'module_name_where_the_action_is.action_name'. In this case the id passed
was product.product_template_action_product but the action is defined in
stock thus the prepare_backend_url was not able to find the associate action
and return a wrong(default) url.

This commit change the action id passed with the correct module.

closes odoo/odoo#18812

Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
parent a94b00e4
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@
</p>
<ul>
<li>Download the <a href="/base_import/static/csv/products.xls">Excel template</a></li>
<li>Import using the top left button in <a t-att-href="prepare_backend_url('product.product_template_action_product','list')">the list of products</a></li>
<li>Import using the top left button in <a t-att-href="prepare_backend_url('stock.product_template_action_product','list')">the list of products</a></li>
</ul>
</div>
</div>
......@@ -375,7 +375,7 @@
running out of stock.
</p>
<p>
To create them, click on <strong><span class="fa fa-refresh"/> Reordering</strong> on <a t-att-href="prepare_backend_url('product.product_template_action_product')">a stockable Product</a> and simply enter a minimum and maximum quantity.
To create them, click on <strong><span class="fa fa-refresh"/> Reordering</strong> on <a t-att-href="prepare_backend_url('stock.product_template_action_product')">a stockable Product</a> and simply enter a minimum and maximum quantity.
</p>
</t>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment