This commit is contained in:
2026-01-03 13:25:11 +01:00
parent b0b2741422
commit bb117d4ee6

View File

@@ -277,11 +277,21 @@ class Dashboard(ModelSQL, ModelView):
Invoice = Pool().get('account.invoice')
invs = Invoice.search(['type','=','in'])
inv_p = len(invs)
invs = Invoice.search([('type','=','in'),('state','=','paid')])
inv_p_p = len(invs)
invs = Invoice.search([('type','=','in'),('state','!=','paid')])
inv_p_np = len(invs)
invs = Invoice.search(['type','=','out'])
inv_s = len(invs)
invs = Invoice.search([('type','=','out'),('state','=','paid')])
inv_s_p = len(invs)
invs = Invoice.search([('type','=','out'),('state','!=','paid')])
inv_s_np = len(invs)
AccountMove = Pool().get('account.move')
accs = AccountMove.search(['journal','=',3])
move_cash = len(accs)
accs = AccountMove.search([('journal','=',3),('state','!=','posted')])
pay_val = len(accs)
accs = AccountMove.search([('journal','=',3),('state','=','posted')])
pay_posted = len(accs)
return (
config.dashboard +
@@ -319,10 +329,20 @@ class Dashboard(ModelSQL, ModelView):
+ str(lot_al)
+ "&inv_p="
+ str(inv_p)
+ "&inv_p_p="
+ str(inv_p_p)
+ "&inv_p_np="
+ str(inv_p_np)
+ "&inv_s="
+ str(inv_s)
+ "&move_cash="
+ str(move_cash)
+ "&inv_s_p="
+ str(inv_s_p)
+ "&inv_s_np="
+ str(inv_s_np)
+ "&pay_val="
+ str(pay_val)
+ "&pay_posted="
+ str(pay_posted)
)