2 from osv import osv, fields
3 from account.wizard.pos_box import CashBox
8 def run(self, cr, uid, ids, context=None):
12 active_model = context.get('active_model', False) or False
13 active_ids = context.get('active_ids', []) or []
15 if active_model == 'pos.session':
16 records = self.pool.get(active_model).browse(cr, uid, context.get('active_ids', []) or [], context=context)
17 return self._run(cr, uid, ids, [record.cash_register_id for record in records], context=context)
19 return super(PosBox, self).run(cr, uid, ids, context=context)
21 class PosBoxIn(PosBox):
22 _inherit = 'cash.box.in'
24 class PosBoxOut(PosBox):
25 _inherit = 'cash.box.out'