From 3dc0d418838dfadf6b05f6ccfe29df8dcaf00a13 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Sep 2022 20:59:49 +0200 Subject: [PATCH] bug affichage facture --- controllers/kalachakra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/kalachakra.py b/controllers/kalachakra.py index a9a2253..9348214 100644 --- a/controllers/kalachakra.py +++ b/controllers/kalachakra.py @@ -31,7 +31,7 @@ class Kalachakra_PortalAccount(CustomerPortal): #KALACHAKRA : on affiche que les factures de l'utilisateur ( idem pour les admins) AccountInvoice = request.env['account.move'].search([('user_id','=',int(request.env.context.get('uid')))]) - domain = [('move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))] + domain = ['&',('user_id','=',int(request.env.context.get('uid'))),('move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))] searchbar_sortings = { 'date': {'label': _('Date'), 'order': 'invoice_date desc'},