Merge dev from main #1

Merged
admin merged 25 commits from main into dev 2026-01-05 13:03:46 +00:00
Showing only changes of commit bb117d4ee6 - Show all commits

View File

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