Help

0

get data from two models and compare them

Avatar
mestoof

Hello,

i need to do some work with odoo 14, i have 10 employees and everyone of them has 100 company, he is responsable of the and he should visite them at less once in the months

I have three models 

1- employees [10 employees], they are users from res.users

2- companies [1000 company] this is a special  model developed by me 

-- field 1 : company name 

-- field 2 : responsible [many2one from res.users]

3- visits  this is a special  model developed by me

-- field 1 : date

-- field 2 :  responsible [many2one from res.users]

-- field 3 :  company  [many2one from company ] 

this all work fine for me 

i want know i the reel time the progress o every employee 

for exemple: 

- user 1 : 25% it's mean he visit 25 company of his 100 

- user 2 : 30%  it's mean he visit 30 company of his 100 

** 100 not fix maybe one had 100 another on 105 or 96 .....

so please what the best way to do this  

Avatar
Discard