Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Products & Pricelists
Entity: product.combo
Compute Method: _compute_combo_item_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ self.combo_item_count = 0 + for combo, item_count in self.env['product.combo.item']._read_group( + domain=[('combo_id', 'in', self.ids)], + groupby=['combo_id'], + aggregates=['__count'], + ): + combo.combo_item_count = item_count |
|
