[FIX] website: correct page properties groups behavior
Before this commit and since [1], there was an issue regarding the group feature on the page properties dialog. When a page visibility is set to restricted groups, and that more then one group is required, a link would be displayed to edit the page's view in the backend. That link was hardcoded, always pointing to the same view. [1]: https://github.com/odoo/odoo/commit/e239934abe456257c9dc285d1ad9829c0353900c task-2800685 closes odoo/odoo#87549 X-original-commit: 9c7a540ddb3e23d847bd1564274b76d8426b2732 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -173,7 +173,7 @@
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-set='groups_tooltip'>More than one group has been set on the view.</t>
|
||||
<a class="show_group_id btn btn-link mx-auto" href="/web#model=ir.ui.view&id=681" t-att-title='groups_tooltip'>Discard & Edit in backend</a>
|
||||
<a class="show_group_id btn btn-link mx-auto" t-attf-href="/web#id=#{widget.page.view_id[0]}&view_type=form&model=ir.ui.view" t-att-title='groups_tooltip'>Discard & Edit in backend</a>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user