parameters: (self)
return_statement: return {
              'product_uom_qty': sum(self.mapped('product_uom_qty')),
              'date': min(self.mapped('date')) if self.mapped('picking_id').move_type == 'direct' else max(self.mapped('date')),
              'move_dest_ids': [(4, m.id) for m in self.mapped('move_dest_ids')],
              'move_orig_ids': [(4, m.id) for m in self.mapped('move_orig_ids')],
              'state': state,
              'origin': origin,
          }
docstring: This method will return a dict of stock move’s values that represent the values of all moves in `self` merged.
docstring_summary: This method will return a dict of stock move’s values that represent the values of all moves in `self` merged.
docstring_tokens: This method will return a dict of stock move’s values that represent the values of all moves in self merged .
function: def _merge_moves_fields(self):
          """ This method will return a dict of stock move’s values that represent the values of all moves in `self` merged. """
          state = self._get_relevant_state_among_moves()
          origin = '/'.join(set(self.filtered(lambda m: m.origin).mapped('origin')))
          return {
              'product_uom_qty': sum(self.mapped('product_uom_qty')),
              'date': min(self.mapped('date')) if self.mapped('picking_id').move_type == 'direct' else max(self.mapped('date')),
              'move_dest_ids': [(4, m.id) for m in self.mapped('move_dest_ids')],
              'move_orig_ids': [(4, m.id) for m in self.mapped('move_orig_ids')],
              'state': state,
              'origin': origin,
          }
function_tokens: def _merge_moves_fields ( self ) : state = self . _get_relevant_state_among_moves ( ) origin = '/' . join ( set ( self . filtered ( lambda m : m . origin ) . mapped ( 'origin' ) ) ) return { 'product_uom_qty' : sum ( self . mapped ( 'product_uom_qty' ) ) , 'date' : min ( self . mapped ( 'date' ) ) if self . mapped ( 'picking_id' ) . move_type == 'direct' else max ( self . mapped ( 'date' ) ) , 'move_dest_ids' : [ ( 4 , m . id ) for m in self . mapped ( 'move_dest_ids' ) ] , 'move_orig_ids' : [ ( 4 , m . id ) for m in self . mapped ( 'move_orig_ids' ) ] , 'state' : state , 'origin' : origin , }