[FIX] website, *: add multi-edit for jobs pages
*: website_hr_recruitment After [1], the multi-edit was added on the pages list views not using it except 'hr.job' records since editing the 'Department' field leads to a traceback. The goal of this commit is to fix this issue by setting an invisible 'company_id' (to be available in domains since necessary to change 'Department') and add multi-edit on the view. The 'home' icon for 'home page' records on list view should be hidden after this commit (on multi edit mode) to edit the fields correctly. [1]: https://github.com/odoo/odoo/commit/be58687284884550cc4e6c2ac7255abee4eb1125 Related to task-2889981 X-original-commit: d101be46a2a9c392e2d63f491fcc5ccec2d65c78 Part-of: odoo/odoo#101814
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
<t t-name="website.PageListRenderer.RecordRow" t-inherit="web.ListRenderer.RecordRow" owl="1">
|
||||
<xpath expr="//Field//ancestor::td/*[1]" position="before">
|
||||
<t t-if="column.name === 'name' and record.data.is_homepage">
|
||||
<t t-if="column.name === 'name' and record.data.is_homepage and record.mode !== 'edit'">
|
||||
<i class="fa fa-fw fa-home fa-lg" title="Home page of the current website"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
<attribute name="js_class">website_pages_list</attribute>
|
||||
<attribute name="type">object</attribute>
|
||||
<attribute name="action">open_website_url</attribute>
|
||||
|
||||
<!-- TODO could be a nice addition but editing "Department" crashes... -->
|
||||
<!-- <attribute name="multi_edit">1</attribute> -->
|
||||
<attribute name="multi_edit">1</attribute>
|
||||
</xpath>
|
||||
|
||||
<field name="name" position="after">
|
||||
<field name="website_url"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</field>
|
||||
<xpath expr="//tree">
|
||||
<field name="is_seo_optimized"/>
|
||||
|
||||
Reference in New Issue
Block a user