Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3088 Visualizzazioni

my flow is 

select res.partner -> click on button which add by me -> after clicking button show my smart button -> and click this smart button and get me sale.order of which res.partner i selected.


The res.partner I select gives me the count of the number of sale.order in the smart buttton.



thank you in advance

ans me please !!!

Avatar
Abbandona
Autore

thank you kiran but this is not work for me

Risposta migliore

Hi  Ra_one_1_11,

There is already a compute field 'sale_order_count' in 'res.partner' which shows the number of SO created for the partner.

Please Check,

https://github.com/odoo/odoo/blob/15.0/addons/sale/models/res_partner.py

Avatar
Abbandona
Risposta migliore

Hello,

You have to write the compute method for get the sale orders in partner form view.

shivoham.odoo@gmail.com

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 23
1428
1
giu 25
1679
3
lug 25
3304
1
mag 25
1444
1
mag 25
1707