summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwapnesh Shah <swapneshshah111@gmail.com>2021-05-15 16:18:35 +0000
committerSwapnesh Shah <swapneshshah111@gmail.com>2021-05-19 13:11:34 +0000
commit45845a87ab6a6260b42abacf16811684418cd775 (patch)
treef2468fae381b3f9f5b19ad308877e8125d967461
parent2aedd076317b37ceffba061c48e3d4fc38f02ea9 (diff)
[FIX] project: display share action on only form view
Before this commit, Share action was displayed on list view as well which doesn't makes sense as it will always use `active_id` only. With this commit, we are displaying `Share` action on form view only. opw-2530652 closes #70821 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
-rw-r--r--addons/project/views/project_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml
index 9561cb00ca9..771f8b9acf7 100644
--- a/addons/project/views/project_views.xml
+++ b/addons/project/views/project_views.xml
@@ -774,6 +774,7 @@
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="binding_model_id" ref="model_project_task"/>
+ <field name="binding_view_types">form</field>
</record>
<record id="unlink_project_action" model="ir.actions.server">