[FIX] project: remove partner_autocomplete assets
Issue: ------ The `partner_autocomplete` module is an automatically installed module. This module is not included in the dependencies and can therefore be uninstalled. If `partner_autocomplete` is uninstalled and we go to a shared project with a portal user for example, we get an internal server error, as we don't have access to the `partner_autocomplete` files. Solution: --------- Remove the `partner_autocomplete` files from the manifest file of the `project` module. Note: If the widget is not found (in the very rare case of uninstalling the `partner_autocomplete` module), we will use the default widget (and create a log). opw-3774575 closes odoo/odoo#157965 X-original-commit: 65331aee3b7c74752aed23e136f08ff1fb5d282d Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com> Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
This commit is contained in:
@@ -195,9 +195,6 @@
|
||||
'project/static/src/components/project_task_name_with_subtask_count_char_field/*',
|
||||
'project/static/src/components/project_task_state_selection/*',
|
||||
'project/static/src/components/project_many2one_field/*',
|
||||
'partner_autocomplete/static/src/js/partner_autocomplete_core.js',
|
||||
'partner_autocomplete/static/src/js/partner_autocomplete_many2one.js',
|
||||
'partner_autocomplete/static/src/xml/partner_autocomplete.xml',
|
||||
'project/static/src/views/project_task_form/*.scss',
|
||||
|
||||
'project/static/src/project_sharing/search/favorite_menu/custom_favorite_item.xml',
|
||||
|
||||
@@ -110,6 +110,9 @@
|
||||
<attribute name="delete">0</attribute>
|
||||
<attribute name="import">0</attribute>
|
||||
</tree>
|
||||
<xpath expr="//field[@widget='res_partner_many2one']" position="attributes">
|
||||
<attribute name="widget">many2one</attribute>
|
||||
</xpath>
|
||||
<field name="user_ids" position="replace">
|
||||
<field name="portal_user_names" string="Assignees"/>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user