From 0d41a3cb81d4167d970502d5d49fed1deca0f625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Baranx=20=28bar=29?= Date: Thu, 27 Feb 2020 07:16:40 +0000 Subject: [PATCH] [FIX] sale: Traceback when creating a quote The field 'type' in the account.move model has been renamed into 'move_type' but the ir.rules of the sale module have not been updated. The fix consists in renaming this field in ir.rules. As another bug was due to this field renaming (see 51b70b6fc42), I have checked that the old 'type' field is no more used in Odoo files. closes odoo/odoo#46398 Signed-off-by: Yannick Tivisse (yti) --- addons/sale/security/sale_security.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index aa82f6143fe..fb041d3768f 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -177,14 +177,14 @@ Personal Invoice Lines - [('move_id.type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), '|', ('move_id.invoice_user_id', '=', user.id), ('move_id.invoice_user_id', '=', False)] + [('move_id.move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), '|', ('move_id.invoice_user_id', '=', user.id), ('move_id.invoice_user_id', '=', False)] All Invoice Lines - [('move_id.type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))] + [('move_id.move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]