From 88fa6f774b1ed3578ea59e1305708bc0e6095e73 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 3 Aug 2020 13:03:24 +0000 Subject: [PATCH] [FIX] account: domain on product - Create a product P which cannot be sold (purchase only) - Create a customer invoice The product can be select on the invoice. The `sale_ok` (as well as the `purchase_ok`) field is not taken into account in the domain. The solution is a bit hacky but has the advantage to be safe in regards to customizations. opw-2308897 closes odoo/odoo#55442 X-original-commit: 88b0b664606bb42acf26165e2b7fdda44a15e0a7 Signed-off-by: Nicolas Martinelli (nim) --- addons/account/views/account_move_views.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 8738b921ce7..6fe8c40daab 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -705,7 +705,13 @@ - +