콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3431 화면

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 !!!

아바타
취소
작성자

thank you kiran but this is not work for me

베스트 답변

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

아바타
취소
베스트 답변

Hello,

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

shivoham.odoo@gmail.com

아바타
취소
관련 게시물 답글 화면 활동
1
12월 23
1678
1
9월 25
2299
1
6월 25
2311
3
7월 25
3806
1
5월 25
1926