# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models class ProductComboItem(models.Model): _name = 'product.combo.item' _inherit = ['product.combo.item', 'pos.load.mixin'] @api.model def _load_pos_data_domain(self, data, config): return [('id', 'in', list(set().union(*[combo.get('combo_item_ids') for combo in data['product.combo']])))] @api.model def _load_pos_data_fields(self, config): return ['id', 'combo_id', 'product_id', 'extra_price']