From abbc44952d3453f0facce70ead6af2e2bdde95f8 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Thu, 12 Sep 2019 15:30:05 +0000 Subject: [PATCH] [IMP] account: make product menus show templates instead of variants As of this commit, the menu items Customers/Products and Vendors/Products now display product templates instead of product variants, which makes more sense in the scope of invoicing/accounting. task-2052537 closes odoo/odoo#36802 Signed-off-by: Damien Bouvy (dbo) --- addons/account/views/account_view.xml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index e5e3bfc66c5..a488cc09ed0 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1803,14 +1803,13 @@ action = model.setting_init_bank_account_action() parent="account.menu_finance_receivables" action="res_partner_action_customer" sequence="110"/> - - product.product.tree - product.product + + product.template.tree + product.template - @@ -1819,21 +1818,13 @@ action = model.setting_init_bank_account_action() - - Products - ir.actions.act_window - product.product - kanban,tree,form - - - Products ir.actions.act_window - product.product + product.template kanban,tree,form,activity {'search_default_filter_to_sell': 1} - +

Create a new sellable product @@ -1844,10 +1835,10 @@ action = model.setting_init_bank_account_action() Products ir.actions.act_window - product.product + product.template kanban,tree,form,activity {'search_default_filter_to_purchase': 1} - +

Create a new purchasable product