(self)
return self.action_show_details()
On `self.move_line_ids`, assign `lot_name` according to
        `self.next_serial` before returning `self.action_show_details`.
On `self.move_line_ids`, assign `lot_name` according to
        `self.next_serial` before returning `self.action_show_details`.
On self . move_line_ids assign lot_name according to self . next_serial before returning self . action_show_details .
def action_assign_serial_show_details(self):
        """ On `self.move_line_ids`, assign `lot_name` according to
        `self.next_serial` before returning `self.action_show_details`.
        """
        self.ensure_one()
        if not self.next_serial:
            raise UserError(_("You need to set a Serial Number before generating more."))
        self._generate_serial_numbers()
        return self.action_show_details()
def action_assign_serial_show_details ( self ) : self . ensure_one ( ) if not self . next_serial : raise UserError ( _ ( "You need to set a Serial Number before generating more." ) ) self . _generate_serial_numbers ( ) return self . action_show_details ( )