Sum record in treeview odoo 17
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Thanks for your help.
But I want:
Example: when I search it show 3 record, and I want to count this record. (field count_record = 3)
Hello BB
It is already showing in odoo17
Solution : 2
If you want to store in a field , You can also do like this
class SaleOrder(models.Model):
_inherit = 'sale.order'
no_of_records = fields.Integer(string='No. Of records', compute='count_no_of_records')
def count_no_of_records(self):
Solution : 1
# records_lst = []
# for record in self.search([], limit=10):
# records_lst.append(record)
# self.no_of_records = len(records_lst)
solution:2
len_records = self.search_count([])
self.no_of_records = len_records
Thanks for your help.
But I want to create a pivot to count record in tree view.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
أبريل 23
|
2972 | ||
Remove sum when GroupBy (online)
تم الحل
|
|
2
مارس 23
|
2698 | |
|
1
مارس 15
|
4866 | ||
|
2
مارس 15
|
8497 | ||
|
0
أبريل 21
|
3798 |